tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

floats-104.xht (1359B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3  <head>
      4   <title>CSS Test: CSS Floats: Unexpected Presences, Part 1</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/004.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    body * { margin: 4px; padding: 4px; border: 1px solid; display: block; }
     10    .test { border-color: blue; width: 40em; }
     11    .float { border-color: fuchsia; float: left; width: 5em; height: 5em; }
     12    .first { border-color: purple; margin-left: 10em; }
     13    .second { border-color: teal; }
     14   </style>
     15  </head>
     16  <body>
     17   <div class="test">
     18    <div class="first"> This is the first block, with a big left margin. At the end
     19    of this block is a left float which should be square. Text that
     20    follows this box should flow to the right of the float; the float
     21    should always be on the left. <div class="float"> This is the square left
     22    float. </div> </div>
     23    <div class="second"> This is the second block. It should fit in the same
     24    container as the first box. This text should wrap on the right side
     25    of the float. </div>
     26   </div>
     27  </body>
     28 </html>