<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>min-width in IE</title>
<style type="text/css">
* html .container {
margin-left: -1200px;
position: relative;
}
/*\*/
* html .container, * html .content {
height: 1px;
}
/**/
.b1 { height: 1px; background-color: #c00; margin: 0 5px; }
.b2 { height: 1px; border-left: 2px solid; border-right: 2px solid; margin: 0 3px; }
.b3, .b4 { border-left: 1px solid; border-right: 1px solid; }
.b3 { height: 1px; margin: 0 2px; }
.b4 { height: 2px; margin: 0 1px; }
.content {
border-left: 1px solid;
border-right: 1px solid;
padding: 5px;
}
.b2, .b3, .b4, .content {
border-color: #c00;
}
.content h2, .content p {
margin: 0;
}
.lf, .rf {
height: 10px;
width: 10px;
}
.lf {
float: left;
background-color: #00f;
}
.rf {
float: right;
background-color: #0f0;
}
.rule {
width: 1200px;
background-color: #c00;
color: #fff;
margin: 1em 0;
}
.width1 {
width: 90%;
min-width: 1200px;
}
* html .minwidth1 {
padding-left: 1200px;
}
/*\*/
* html .minwidth1, * html .layout {
height: 1px;
}
/**/
</style>
</head>
<body>
<p>Transparent version:</p>
<div class="width1">
<div class="minwidth1">
<div class="layout">
<div class="container">
<div class="b1"><!-- --></div><div class="b2"><!-- --></div><div class="b3"><!-- --></div><div class="b4"><!-- --></div>
<div class="content">
<h2>{width:90%; min-width:1200px;} includes IE5+</h2>
<p>This div has a min-width of 1200px and a width of 90%. <span class="lf"><!-- --></span> <span class="rf"><!-- --></span>
The width can be any percentage and the min-width a px or em value.</p>
</div>
<div class="b4"><!-- --></div><div class="b3"><!-- --></div><div class="b2"><!-- --></div><div class="b1"><!-- --></div>
</div>
</div>
</div>
</div>
<div class="rule">this is 1200px wide</div>
</body>
</html>