Skip to content

felipearosemena/equalHeight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

equalHeight

Make heights match in a set of matching elements

Usage

The plugin is quite simple. Just add a data-equal-height=X to any element, where X is the name of the group it belongs to.

<div data-equal-height="a"></div>
<div data-equal-height="a"></div>
<div data-equal-height="a"></div>

<div data-equal-height="b"></div>
<div data-equal-height="b"></div>

Then call the plugin:

$('div').equalHeight();

Now all divs with data-equal-height=a will match heights, and the same for all data-equal-height=b elements.

It will automatically listen for resize events and readjust the size of all the elements

About

Make heights match in a set of matching elements

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published