Forum Moderators: not2easy

Message Too Old, No Replies

div resize based on another auto height div

         

fraser1980

11:36 am on Jul 1, 2008 (gmt 0)

10+ Year Member



After pondering this for a few hours, gaining only a headache, I'm fairly sure that my problem is not do-able, but thought I'd cast the line out to you guys to see if you could offer any solutions.

I don't mind if a solution is in CSS, tables, or even JavaScript.

On my page, I currently have 2 divs side by side. The left hand div is auto height to expand with its content. The right hand div is currently fixed height, with auto overflow to scroll it's content if needed.

I have been asked to have the height of the right hand div match the size of the left hand div (the left hand div needs to remain auto height). If the content in the right div exceeds the height governed by the left hand div then it will still allow it to scroll.

Thankyou in advance for any suggestions.

Fraser

swa66

11:54 pm on Jul 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ask in the javascript department, they'll know how to change the height of an element based on other element's heights.