c5526-fltclr-000

clear

WeasyPrint

This browser

Flags
ahem, image

Source

 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: clear</title>
 5   <meta name="flags" content="ahem image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#clear">
 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    div { font: 15px/1 Ahem; color: green; background: red url(support/css1test5526.png) no-repeat; width: 20em; border: solid black; }
11    p { margin: 1em 0; }
12    .left {float: left;}
13    .right {float: right;}
14    .one {clear: left;}
15    .two {clear: right;}
16    .three {clear: both;}
17    .four {clear: none;}
18   </style>
19   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
20   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" title="9.5.2 Controlling flow next to floats: the 'clear' property">
21  </head>
22  <body>
23   <p>There should be a big green box below.</p>
24   <div>
25    <img src="support/swatch-green.png" height="50" class="left" alt="[Image]"> 
26    <p>
27     xxxxx xxxx xxx xx x xx xxx xxxx
28     xxxxx xxxx xxx xx x xx xxx xxxx
29     xxxxx xxxx xxx xx x xx xxx xxxx
30    </p>
31    <img src="support/swatch-green.png" height="50" class="left" alt="[Image]"> 
32    <p class="one">
33     xxxxx xxxx xxx xx x xx xxx xxxx
34     xxxxx xxxx xxx xx x xx xxx xxxx
35    </p>
36    <img src="support/swatch-green.png" height="50" class="right" alt="[Image]"> 
37    <p class="two">
38     xxxxx xxxx xxx xx x xx xxx xxxx
39     xxxxx xxxx xxx xx x xx xxx xxxx
40    </p>
41    <img src="support/swatch-green.png" height="50" class="left" alt="[Image]">
42    <img src="support/swatch-green.png" height="50" class="right" alt="[Image]"> 
43    <p class="three">
44     xxxxx xxxx xxx xx x xx xxx xxxx
45     xxxxx xxxx xxx xx x xx xxx xxxx
46    </p>
47    <img src="support/swatch-green.png" height="50" class="left" alt="[Image]">
48    <img src="support/swatch-green.png" height="50" class="right" alt="[Image]"> 
49    <p class="four">
50     xxxxx xxxx xxx xx x xx xxx xxxx
51     xxxxx xxxx xxx xx x xx xxx xxxx
52     xxxxx xxxx xxx xx x xx xxx xxxx
53     xxxxx xxxx xxx xx x xx xxx xxxx
54    </p>
55   </div>
56  </body>
57 </html>