tor-browser

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

floats-clear-multicol-balancing-000.html (1183B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
      2 <title>CSS Float Test: Test the clear position after the floating elements breaking across multi-columns</title>
      3 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
      4 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      5 <link rel="author" title="Mozilla" href="http://www.mozilla.org/">
      6 <link rel="help" href="https://drafts.csswg.org/css2/visuren.html#flow-control">
      7 <link rel="match" href="floats-clear-multicol-balancing-000-ref.html">
      8 
      9 <style type="text/css">
     10 .multicol {
     11  margin: 1em;
     12  border: solid silver;
     13  width: 300px;
     14  column-width: 100px;
     15  column-gap: 0;
     16  height: 100px;
     17 }
     18 
     19 .float {
     20  float: right;
     21  width: 15px;
     22  background: aqua;
     23  height: 250px;
     24 }
     25 .L {
     26  float: left;
     27 }
     28 
     29 .container {
     30  width: 100%;
     31  background: red;
     32 }
     33 
     34 .clear {
     35  border-bottom: 5px solid orange;
     36 }
     37 </style>
     38 
     39 <p>The orange line should be in the third column
     40 (immediately after the end of the aqua lines).
     41 
     42 <div class="multicol">
     43  <div class="container">
     44    <div class="float L"></div>
     45    <div class="float R"></div>
     46  </div>
     47  <div class="clear">
     48    <br clear="all">
     49  </div>
     50 </div>