Archives for Sunday, November 11th, 2007
You are currently browsing 1 article(s) published on Sunday, November 11th, 2007, please try the search if you can't fint what you're looking for.
jQuery Equal Height Elements Plugin
Sunday, November 11, 2007
This plug-in will make every matched element equal height by adjusting their min-height properties. Any padding/border will be taken in to account but this plug-in is not compatible with IE6 as it lacks support for min-height.
To make #content and #sub-content equal height you simply go: $('#content, #sub-content').equalHeight();
It's best to run equalHeight() on window.onload rather than $(document).ready() so that all images are loaded before the height is calculated.
It requires jQuery and you can get the code here.
Enjoy!
- Comments are off
- Filed under Javascript, jQuery





