You are here: HomeForums » CSS » Tips and tricks » Fixed min-height for Internet Explorer and Firefox

Fixed min-height for Internet Explorer and Firefox (2 posts)

in Forums » CSS » Tips and tricks

thdadmin (administrator)

This little piece of CSS code fixes the problem IE has with min-height. First class is basic CSS for Firefox and the other one expands the .cont so that it fits the extra text inside it.

.cont
{
min-height: 400px;
height: auto !important;
}

* html .cont
{
height: 400px;
}
Posted 1 month ago #

ioana (Administrator)

Hello! I picked up this css that fixes both min-width and max-width for IE 6. It uses the expression() to condition the width of the container element:

#container {
	height: 75px;
	background-color: #00000;
	color: #ffffff;
	width: expression(document.body.clientWidth < 742 ? "740px" : document.body.clientWidth > 1202 ? "1200px" : "auto");
	min-width: 740px;
	max-width: 1200px;
}
Posted 1 month ago #

Reply

You must log in to post.