1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Percentage Units</title>
5 <meta name="flags" content="ahem image">
6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#percentage-units">
7 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
8 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
9 <style type="text/css">
10 p { margin: 1em 0; }
11 .zero { background: red url(support/css1test62-outer.png) no-repeat; width: 12em; font: 15px/1 Ahem; border: solid black; color: green ; }
12 .one { margin-left: 25%; margin-right: 25%; background: red url(support/css1test62-inner.png) no-repeat; }
13 .two { margin-left: 50%; margin-right: 0%; background: red url(support/css1test62-inner.png) no-repeat; }
14 .three { margin-left: 25%; }
15 </style>
16 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#percentage-units" title="4.3.3 Percentages">
17 </head>
18 <body>
19 <p>There should be a green box below.</p>
20 <div class="zero">
21 <div class="one">
22 <p>
23 x x x x x x x x x x x x x x x
24 </p>
25 </div>
26 <div class="two">
27 <p>
28 x x x x x x x x x x x x x x x
29 </p>
30 </div>
31 <p class="three">
32 x x x x x x x x x x x x x x x x x x x x
33 </p>
34 </div>
35 </body>
36 </html>