t0905-c5525-fltclr-00-c-ag.html 1.9 KB
Newer Older
ap's avatar
ap committed
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
thatcher's avatar
thatcher committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
<html>
 <head>
  <title>CSS 2.1 Test Suite: clear</title>
  <style type="text/css">
   div { font: 15px/1 Ahem; color: green; background: red url(support/css1test5526.png) no-repeat; width: 20em; border: solid black; }
   p { margin: 1em 0; }
   .left {float: left;}
   .right {float: right;}
   .one {clear: left;}
   .two {clear: right;}
   .three {clear: both;}
   .four {clear: none;}
  </style>
  <link title="9.5 Floats" href="http://www.w3.org/TR/CSS21/visuren.html#floats" rel="help">
  <link title="9.5.2 Controlling flow next to floats: the 'clear' property" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" rel="help">
 </head>
 <body>
  <p>There should be a big green box below.</p>
  <div>
   <img alt="[Image]" height="50" src="support/swatch-green.png" class="left"> 
   <p>
    xxxxx xxxx xxx xx x xx xxx xxxx
    xxxxx xxxx xxx xx x xx xxx xxxx
    xxxxx xxxx xxx xx x xx xxx xxxx
   </p>
   <img alt="[Image]" height="50" src="support/swatch-green.png" class="left"> 
   <p class="one">
    xxxxx xxxx xxx xx x xx xxx xxxx
    xxxxx xxxx xxx xx x xx xxx xxxx
   </p>
   <img alt="[Image]" height="50" src="support/swatch-green.png" class="right"> 
   <p class="two">
    xxxxx xxxx xxx xx x xx xxx xxxx
    xxxxx xxxx xxx xx x xx xxx xxxx
   </p>
   <img alt="[Image]" height="50" src="support/swatch-green.png" class="left">
   <img alt="[Image]" height="50" src="support/swatch-green.png" class="right"> 
   <p class="three">
    xxxxx xxxx xxx xx x xx xxx xxxx
    xxxxx xxxx xxx xx x xx xxx xxxx
   </p>
   <img alt="[Image]" height="50" src="support/swatch-green.png" class="left">
   <img alt="[Image]" height="50" src="support/swatch-green.png" class="right"> 
   <p class="four">
    xxxxx xxxx xxx xx x xx xxx xxxx
    xxxxx xxxx xxx xx x xx xxx xxxx
    xxxxx xxxx xxx xx x xx xxx xxxx
    xxxxx xxxx xxx xx x xx xxx xxxx
   </p>
  </div>
 </body>
</html>