Bongeh Posted February 6, 2008 Share Posted February 6, 2008 Is it possible to create a div, that has a minimum height of say, 600px, so that if the content is only 300px long the box stays 600px heigh, but if the content is say, 800px long, the box will be elongated to 800px? Sorry if theres a simple answer to this, its something thats just crossed my mind and i was wondering if its something thats a standard feature of divs i dont know about Quote Link to comment https://forums.phpfreaks.com/topic/89703-minimum-height-no-max-height/ Share on other sites More sharing options...
bronzemonkey Posted February 6, 2008 Share Posted February 6, 2008 In Firefox, Opera, Safari, IE7, etc., use {min-height: 600px;} In IE5 and IE6 use {height: 600px;} Quote Link to comment https://forums.phpfreaks.com/topic/89703-minimum-height-no-max-height/#findComment-460179 Share on other sites More sharing options...
Bongeh Posted February 12, 2008 Author Share Posted February 12, 2008 thank you, works a charm! Quote Link to comment https://forums.phpfreaks.com/topic/89703-minimum-height-no-max-height/#findComment-464685 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.