Skip to content

Instantly share code, notes, and snippets.

View timohanninen's full-sized avatar

Timo Hänninen timohanninen

View GitHub Profile
@timohanninen
timohanninen / equal-height.js
Created July 23, 2013 07:27
Responsive equal height divs and other HTML elements with jQuery. Ready to use out-of-the-box. // FEATURES: Automatically checks for row ends, so no need for classes like "last" for the last element of a row // Supports multiple classes that can be set. // Resizing can be cancelled simply by adding the class "noresize" to an element (added for c…
/*
Usage:
<div class="equal-height">
<div class="resize-me">Stuff</div>
<div class="resize-me">Stuff</div>
<div class="resize-me">Stuff</div>
<div class="resize-me">Stuff</div>
</div>