Created
August 30, 2012 00:17
-
-
Save bondarolik/3520855 to your computer and use it in GitHub Desktop.
Set height of div based on the highest div in columns
This file contains 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
$(document).ready(function() { | |
var sidebarHeight = $("#sidebar").height(); | |
var contentHeight = $("#workarea").height(); | |
if (contentHeight > sidebarHeight) { | |
$("#sidebar").height(contentHeight).slideDown("slow"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment