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: CSS Floats: Auto Sizing (with border)</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/020.xml" type="application/xhtml+xml">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats">
8 <style type="text/css">
9 .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
10 .test { display: block; }
11 span { display: block; width: 150px; height: 75px; margin-bottom: 10px; background: navy; }
12 .float { float: left; background: red; color: navy; font: 25px/1 Ahem; border: solid navy 25px; }
13 </style>
14 </head>
15 <body>
16 <p>There should be two identical blocks below.</p>
17 <div class="test">
18 <span></span>
19 <div class="float">XXXX</div>
20 </div>
21 </body>
22 </html>