May 3, 200917 yr Hi, I need a page on a site im doing to be at least 518px high. Ive used the min-height css rule but i understand IE6 and below dont understand this! Also, is there some problem in IE7 with this rule too? Ive seen a few diff hacks about but which one is best...? Your replies would be grateful.
May 3, 200917 yr I use this method: 1. put this in the <head> of an html page: <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="css/ie6.css" /> <![endif]--> 2. in ie6.css add this rule: #your-div {height:518px;} Because ie6 stretches the div down despite the height property, ie6’s idea of 'height' appears as 'min-height'.
May 3, 200917 yr yes it will stretch because of a bug in ie6. I can't help with ie5 since I no longer test for it.
May 4, 200917 yr IE5 !!! Where have you been man? IE5 / IE6 <<<< dont code for them your just encouraging people to hang on to these relics. Your wasting your time imo.
Create an account or sign in to comment