|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
2 <html lang="en-US"> |
|
3 <head> |
|
4 <title>CSS 2.1 Test Suite: Test for flow around floats (reference)</title> |
|
5 <link rel="author" title="L. David Baron" href="http://dbaron.org/" /> |
|
6 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> |
|
7 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
8 <meta http-equiv="Content-Style-Type" content="text/css"> |
|
9 <style type="text/css"> |
|
10 |
|
11 body { font-size: 10px; } |
|
12 |
|
13 </style> |
|
14 </head> |
|
15 <body> |
|
16 |
|
17 <div style="width: 300px; height: 40px;background: aqua"> |
|
18 <div style="float:left; background:blue; width: 200px; height: 20px"></div> |
|
19 <div style="float:left; clear: left; background: yellow; width: 150px; height: 20px">50%</div> |
|
20 </div> |
|
21 |
|
22 <div style="width: 300px; height: 40px;background: aqua"> |
|
23 <div style="float:right; background:blue; width: 200px; height: 20px"></div> |
|
24 <div style="float:left; clear: right; background: yellow; width: 150px; height: 20px">50%</div> |
|
25 </div> |
|
26 |
|
27 <div style="width: 300px; height: 40px;background: aqua"> |
|
28 <div style="float:left; background:blue; width: 200px; height: 20px"></div> |
|
29 <div style="float:left; clear: left; background: yellow; width: 150px; height: 20px">50%</div> |
|
30 </div> |
|
31 |
|
32 <div style="width: 300px; height: 40px;background: aqua"> |
|
33 <div style="float:right; background:blue; width: 200px; height: 20px"></div> |
|
34 <div style="float:left; clear: right; background: yellow; width: 150px; height: 20px">50%</div> |
|
35 </div> |
|
36 |
|
37 </body> |
|
38 </html> |