Skip to content
This repository was archived by the owner on Mar 20, 2020. It is now read-only.

dirkpeter/jquery.sameHeight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery.sameHeight

Bower CircleCI CircleCI

small jQuery plugin to set the same height for sibling elements even when resizing the browser-window.

Install

$ bower install jquery.sameheight --save

Usage

$('#myElement > li').sameHeight();

or with config

$('.mySelection').sameHeight({
  breakpoint: 500,
  delay: 100,
  initialDelay: 10,
  minHeight: 0
});

Config

Option Default Info
breakpoint 500 [px] window with above witch the plugin sets a min-height. below min-height will be set to 0
delay 10 [ms] buffering while window-resizing
initialDelay 10 [ms] delay before the initial height-adjustment
minHeight 0 [px] min-height for selected elements, when above the breakpoint

Authors

Dirk Peter

About

small jQuery plugin to set the same height for sibling elements even when resizing the browser-window.

Resources

License

Stars

Watchers

Forks

Packages

No packages published