Jump to content

nested div


birbal
 Share

Recommended Posts

<div class='container'>   <div class='panel'>   some text goes here   </div>   <div class='content'>   some more text goes here   </div></div>

'panel' have fixed height. 'content' has minimum fixed height but can extend as far its goes. 'container' will expand as far it can go to accomodate the space for 'content'i had tried some but its overflowing the 'container' by 'content'. how can i do that?

Link to comment
Share on other sites

thanks for the help shadowmage. it is working now. it was position:absolute which was causing the trouble.thanks again

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...