Problems with $ (''). height ();

0

My site is basically like this:

img http://www.mediafire.com/convkey/3266/gr3pg3kqokxkkduzg.jpg

I make the following script to keep block #right from height of #left:

$('#right').height($('#left').height());

But when I put some content in the left block, the right block gets a little smaller:

/ p>

If you want to see the site: link

How do I do it?

Thanks in advance!

    
asked by anonymous 25.01.2015 / 14:39

1 answer

1

As stated above, the best way to solve this problem would be with css. If you do not mind using javascript tai the solution: $('#publicidade').height($('#corpo').outerHeight());

link link

Good reading

    
26.01.2015 / 20:12