tor-browser

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

margin-collapse-min-height-002-ref.xht (773B)


      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 margin: Margin collapsing and elements with min-height</title>
      5 <link rel="author" title="Bert Bos" href="mailto:bert@w3.org" />
      6 <style type="text/css">
      7   #container {width: 50px; border-top: 1px solid transparent;
      8     background: green}
      9   #parent {height: 50px; background-color: white; margin-top: 50px}
     10   #following-sibling {height: 50px; background-color: green}
     11 </style>
     12 </head>
     13   <body>
     14     <p>There should be two solid green squares and no red on this page</p>
     15 
     16     <div id="container" >
     17       <div id="parent">
     18       </div>
     19       <div id="following-sibling"></div>
     20     </div>
     21   </body>
     22 </html>