1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
4 <title>Minimum and Maximum Widths
</title>
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
6 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
7 <link rel=
"copyright" href=
"/~dbaron/legal.html">
8 <style type=
"text/css">
10 border: medium solid purple
;
66 <h1>Minimum and Maximum Widths
</h1>
68 <div class=
"test">This
<code>div
</code> should have a medium solid purple
69 border, as should all the rest.
</div>
71 <div class=
"test one">This
<code>div
</code> should have a width of
40%. This is a reference
<code>div
</code> and should work as long as
<code>width
</code> works.
</div>
73 <div class=
"test two">This
<code>div
</code> should have a width of
40%.
</div>
75 <div class=
"test three">This
<code>div
</code> should have a width of
40%.
</div>
77 <div class=
"test four">This
<code>div
</code> should have a width of
40%.
</div>
79 <div class=
"test five">This
<code>div
</code> should have a width of
40%.
</div>
81 <div class=
"test six">This
<code>div
</code> should have a width of
40%.
</div>
83 <div class=
"test seven">This
<code>div
</code> should have a width of
40%.
</div>
85 <div class=
"test eight">This
<code>div
</code> should have a width of
40%.
</div>
87 <div class=
"test nine">This
<code>div
</code> should have a width of
40%.
</div>
89 <p>If the browser does not support
<code>min-width
</code> and
90 <code>max-width
</code>, then the widths should be
<code>auto
</code>,
91 <code>40%
</code>,
<code>30%
</code>,
<code>50%
</code>,
<code>50%
</code>,
92 <code>40%
</code>,
<code>30%
</code>,
<code>40%
</code>,
<code>auto
</code>
93 (with
70% margin-right), and
<code>auto
</code>.
</p>