birbal Posted March 8, 2011 Report Share Posted March 8, 2011 <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 More sharing options...
ShadowMage Posted March 8, 2011 Report Share Posted March 8, 2011 If I understand you correctly it should be as simple as: .container { width: 400px;}.panel { height: 45px;}.content { min-height: 80px;} (Adjust values as needed) Link to comment Share on other sites More sharing options...
birbal Posted March 12, 2011 Author Report Share Posted March 12, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now