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