Jump to content

div relative height


M.O.S. Studios

Recommended Posts

here is my layout

 

<div class='wrapper'>

<div class='right'></div>

    <div class='content'></div>

<div class='left'></div>

</div

 

I've tried a few different css codes, I cant figure out what combo i need exactly.

 

i want .content to determine the height of: .wrapper, .right and .left

 

and i want the height of .content to be determined by the content inside with a minimum of 800px.

 

any ideas?

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/190972-div-relative-height/
Share on other sites

You can't set the sizes of .right and .left according to the size of .content. CSS is not a computational language, and doesn't allow sizes to be computed based on the sizes of other elements, unless those other elements are directly interacting with each other, which in your case, they aren't.

Link to comment
https://forums.phpfreaks.com/topic/190972-div-relative-height/#findComment-1007131
Share on other sites

well I'm going to re-phrase my question, just in case there is a misunderstanding.

 

basically the .right and .left div have to run parallel to content and at the same length.

 

the problem I'm having is that when  .content is expanded to more then 800 px all the other divs stay the same length

Link to comment
https://forums.phpfreaks.com/topic/190972-div-relative-height/#findComment-1007146
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.