Skip to content

This plugin calculates height relative to elements on responsive webdesign

Notifications You must be signed in to change notification settings

marcelokubart/jquery.responsiveheight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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