floats-108

CSS Floats: Float Sizing (styled floats)

WeasyPrint

This browser

Flags
interact

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: CSS Floats: Float Sizing (styled floats) </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/008.xml" type="application/xhtml+xml">
 7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/008.html" type="text/html">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats">
 9   <meta name="flags" content="interact">
10   <style type="text/css">
11    .float { float: left; border: solid blue; color: silver; padding: 0.5em; margin: 0.5em; }
12   </style>
13  </head>
14  <body>
15 
16   <p><strong>All blue boxes must always be the same size</strong>. Make your
17   window an inch or two bigger than than the width of one box to check. Try
18   resizing the window so that the boxes wrap in two or more columns. Try
19   resizing the window to be narrower than the boxes so that the text inside
20   them wraps into two or more lines.</p>
21 
22   <div class="float"> this is a float this is a float this is a float </div>
23   <div class="float"> this is a float this is a float this is a float </div>
24   <div class="float"> this is a float this is a float this is a float </div>
25   <div class="float"> this is a float this is a float this is a float </div>
26   <div class="float"> this is a float this is a float this is a float </div>
27   <div class="float"> this is a float this is a float this is a float </div>
28   <div class="float"> this is a float this is a float this is a float </div>
29   <div class="float"> this is a float this is a float this is a float </div>
30 
31  </body>
32 </html>