/ Published in: CSS
Expand |
Embed | Plain Text
#container { min-height:500px; } * html #container { height:500px; }
Comments
Subscribe to comments
You need to login to post a comment.
#container { min-height:500px; } * html #container { height:500px; }
Subscribe to comments
You need to login to post a comment.
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.