birbal Posted March 8, 2011 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 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 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
Archived
This topic is now archived and is closed to further replies.