tor-browser

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

fieldset-001-ref.html (1536B)


      1 <!DOCTYPE html>
      2 <html><head>
      3 <title>Reference: fragmenting a fieldset in multicol layout</title>
      4 <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
      5 <style>
      6  * {
      7    color:black; background-color:white; font:16px/1 monospace; padding:0; margin:0;
      8  }
      9  body { width:600px; height:600px; }
     10 
     11  .cols { columns:3; background:grey; margin-bottom: 10px; height:80px; column-fill:auto; }
     12  .c2 { column-count:2; height:120px; }
     13  legend { background:black; width:100px; height:19px; }
     14  p {
     15    position: relative;
     16    border: solid;
     17    border-width: 6px 3px 10px 7px;
     18    margin: 3px 10px 7px 5px;
     19    background-color: lightgrey;
     20  }
     21  p, legend {
     22    background-clip: content-box;
     23    padding: 10px 7px 20px 3px;
     24  }
     25  p { margin-top: 25px; }
     26  legend {
     27    position: absolute;
     28    padding: 0;
     29    border: 0 solid grey;
     30    border-left-width: 3px;
     31    border-right-width: 7px;
     32    top: -18px; left: 3px;
     33  }
     34  p.sized {
     35    height: 86px;
     36  }
     37  c { display:block; background:blue; opacity:.5; height:108px; }
     38  pad { display:block; height: 21px; background-color: lightgrey;}
     39 </style>
     40 </head>
     41 <body>
     42  <div class="cols">
     43    <p><legend></legend><pad></pad><c></c></p>
     44  </div>
     45  <div class="cols c2">
     46    <p><legend></legend><pad></pad><c></c></p>
     47  </div>
     48  <div class="cols">
     49    <p class="sized"><legend></legend><pad></pad><c style="height:98px"></c><c style="width:154px;height:10px"></c></p>
     50  </div>
     51  <div class="cols c2">
     52    <p class="sized"><legend></legend><pad></pad><c></c></p>
     53  </div>
     54 </body>
     55 </html>