tor-browser

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

floats-007.xht (1633B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: Floated elements shifting down below non-floated elements</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" />
      7         <link rel="match" href="floats-007-ref.xht" />
      8 
      9         <meta name="assert" content="Left floated boxes shift down until next to another float and there is room to fit." />
     10         <style type="text/css">
     11             #div1
     12             {
     13                 background: purple;
     14                 height: 1in;
     15                 width: 1.25in;
     16             }
     17             #div2
     18             {
     19                 background: yellow;
     20                 height: 0.25in;
     21                 width: 0.75in;
     22             }
     23             #div3
     24             {
     25                 background: orange;
     26                 float: left;
     27                 height: 1in;
     28                 width: 1in;
     29             }
     30             #div4
     31             {
     32                 background: blue;
     33                 float: left;
     34                 height: 1.25in;
     35                 width: 1.25in;
     36             }
     37         </style>
     38     </head>
     39     <body>
     40         <p>Test passes if the top edges of the orange and blue squares are aligned and both squares are below the purple rectangle and yellow stripe.</p>
     41         <div>
     42            <div id="div1"></div>
     43            <div id="div2"></div>
     44            <div id="div3"></div>
     45            <div id="div4"></div>
     46         </div>
     47     </body>
     48 </html>