Created
August 8, 2012 02:15
-
-
Save jimmynotjim/3291471 to your computer and use it in GitHub Desktop.
Another equal height columns script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// equalize height for content area with sidebar | |
var equalize = Math.max( | |
$('.main').height(), | |
$('.sidebar').height() | |
); | |
$('.content').height(equalize); |
So far, this one seems to be the most reliable (at least for what I'm working on):
http://www.broken-links.com/2009/01/20/very-quick-equal-height-columns-in-jquery/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do this in css too if its just a border:
Will always keep a 1px #ccc border for the entire height of the content.