CSS Filter: Can I get some auto-height up in this biach?!
August 17, 2012 10:22 PM Subscribe
CSS Filter: I have a standard three column layout. I cannot figure out how to get the left and right columns to have a height that automatically stretches to the length of the center column.
My Google-Fu turns up tons of advice on the topic (which hopefully means this is a common problem), but none of it seems to help (
even this stuff). I figure the easiest way to explain the situation is just to link to my
HTML and
CSS (which I hope is kosher).
PS: Ignore the repeating, random content on the page. I'm obviously still very early on in the design process.
posted by JPowers to computers & internet (7 answers total) 4 users marked this as a favorite
function equalHeight(group) {
var tallest = 0;
group.each(function() {
var thisHeight = $(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}
$(document).ready(function() {
equalHeight($(".column"));
});
posted by thorny at 10:30 PM on August 17, 2012 [2 favorites]