What I'm trying to do is check the heights of two columns and apply the greater height to the content wrapper the are in.
Here;s what I have so far.
- $(document).ready(function () {
- var rColumnHeight = $('#right_column').css('height');
- var lColumnHeight = $('#left_column').css('height');
- if (lColumnHeight > rColumnHeight) {
- $('#body_content').css('height', lColumnHeight)
- }else if(rColumnHeight > lColumnHeight ){
- $('#body_content').css('height', rColumnHeight)
- }
- });
This seems to work, but now I'm having trouble having the left column height be equal to the right column, and vis versa. That way, both heights are equal and the content wrapper's height matches that.