Skip to content

djesse/syncHeight

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Synch Heights Plugin

jQuery Plugin that automatically syncs the height properties of the elements that match the given selector.

Usage:
------
// use $(window).load instead of $(document).ready to wait until all images have been loaded.
// Otherwise common height may be calculated without taking all images into account
$(window).load(function(){
    $('p').syncHeight({ 'updateOnResize': true});
});

Parameters:
-----------
height (default: false): set a static number in pixel (e.g. 250) to prevent from automatically figuring
                         out the common height and using the given number.
updateOnResize (default: false): automatically sync elements if browser window gets resized

See also

About

jQuery Plugin that automatically syncs the height properties of the elements that match the given selector.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%