Min-height for IE (and all other browsers)

This is a CSS snippet, talking about fix, ie and min-height

Min-height for IE (and all other browsers) Add to Favorite

/* for browsers that don't suck */
.container {
  min-height:8em; 
  height:auto !important;
}

/* for Internet Explorer */
/*\*/
* html .container {
  height: 8em;
}
/**/
URL: http://www.cssplay.co.uk/boxes/minheight.html

Since min-height doesn't work in IE, this code makes up for IE's shortcomings. The first part of the code is the correct code that works in Firefox and Safari. The second part of the code is for IE. Internet Explorer will ignore min-height and is just given a height of 8em. The IE bug automatically expands the container to fit the extra text.

Created by ThePeppersStudio (392 days, 10.42 hours ago)

Do you want to leave a message? Please login first.