Jump to content

nested div fitting


smerny

Recommended Posts

Having some issues I'm sure are elementary for most people here...

 

<div id='container'>
<div id='sidebar'>
  [stuff]
</div>
<div id='mainContent'>
  [other divs with more stuff]
</div>
</div>

 

[*]how can i make it so that if 'sidebar' is longer than 'mainContent', mainContent becomes the same height... and vice versa?

[*]having issues with divs in 'mainContent' actually extending past the 'mainContent' background, how do i make sure content within 'mainContent' doesnt hang outside of it?

appreciate any help/advice

Link to comment
https://forums.phpfreaks.com/topic/255230-nested-div-fitting/
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.