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: Floats: No higher than earlier floats</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/046.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats">
8 <style type="text/css">
9 p { color: blue; }
10 .container { width: 20em; }
11 .float { padding: 0.2em; margin: 0.2em; border: thin solid; }
12 .a { color: fuchsia; width: 12em; float: left; }
13 .b { color: orange; width: 14em; float: left; }
14 .c { color: orange; width: 4em; float: right; }
15 </style>
16 </head>
17 <body>
18 <p>C must not be above B.</p>
19 <div class="container">
20 <div class="float a">A</div>
21 <div class="float b">B</div>
22 <div class="float c">C</div>
23 </div>
24 </body>
25 </html>