ginader/syncHeight

Can this work for two divs in a containing div?

akwilinski opened this issue · 2 comments

Hello,

Great plugin. I was wondering if this can work for two divs that have different amounts of content in one container div.

I am trying to match the size of the div up no matter how much content is in that first div area.

Thanks.
-Ann

Hi,
yes that's exactly what it is for.
For your example:

<div id="container">
   <div id="bodycolumn"><p> lots of content here</p></div>
   <div id="rightcolumn"><p> a little content here</p></div>
</div>

it would be:

$(window).load(function(){
    $('#container div').syncHeight({ 'updateOnResize': true});
});

Okay great, Thank you for your help.

I tried it and it works almost the way i need it to. Can I target a single div to match the container div?

As of now its targeting some of the nested divs on the right column and making them the same height.

You can see what I have done here: http://test.shared-vision.net/CWF/inner.html