/ Published in: jQuery
If the height of the main column is ever shorter than the height of the right column, the main column will grow to match its height.
This script was used on the Solaray project.
Expand |
Embed | Plain Text
$(function() { mainHeight = $(".container_650").height(); rightHeight = $(".container_right").height(); if(mainHeight < rightHeight) { $(".container_650").height(rightHeight-30); } });
Comments
Subscribe to comments
You need to login to post a comment.

For Safari, consider running this script inside a $(window).load instead of jQuery's typical document.ready. Safari incorrectly loads scripts in document.ready before CSS is fully loaded, which will cause this script to not work.
$(window).load(function(){ // the script above });