Skip to content

marcelokubart/jquery.responsiveheight

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

jquery.responsiveheight

About

This plugin calculates height relative to elements on responsive webdesign

When starting my work with responsive web design difficulties encountered in working with the Height property when using CSS sprites. This plugin calculates the height of an element relative to its width.

Expression:

Coefficient Height = Height Layout / Width Layout

Height = Current Width * Coefficient Height

Coefficinet Height is a HRELATION attribute of the element

Usage

HTML

  <div id="div-eg" data-hrelation="0.56"></div>

JavaScript

   $(document).ready(function(){
     $('#div-eg').responsiveheight();
   });

About

This plugin calculates height relative to elements on responsive webdesign

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published