Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>See:</strong> <a href="http://jsfiddle.net/qx32C/36/" rel="noreferrer">http://jsfiddle.net/qx32C/36/</a></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>.lineContainer { overflow: hidden; /* clear the float */ border: 1px solid #000 } .lineContainer div { height: 20px } .left { width: 100px; float: left; border-right: 1px solid #000 } .right { overflow: hidden; background: #ccc }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="lineContainer"&gt; &lt;div class="left"&gt;left&lt;/div&gt; &lt;div class="right"&gt;right&lt;/div&gt; &lt;/div&gt;</code></pre> </div> </div> </p> <hr> <p><a href="http://colinaarts.com/articles/the-magic-of-overflow-hidden/#making-room-for-floats" rel="noreferrer">Why did I replace <code>margin-left: 100px</code> with <code>overflow: hidden</code> on <code>.right</code>?</a> <br><br> EDIT: Here are two mirrors for the above (dead) link: </p> <ul> <li><a href="http://archive.is/YcMD6" rel="noreferrer">archive.is</a> </li> <li><a href="https://web.archive.org/web/20150518223317/http://colinaarts.com/articles/the-magic-of-overflow-hidden/?#making-room-for-floats" rel="noreferrer">web.archive.org</a></li> <li><a href="https://colinaarts-com.herokuapp.com/#making-room-for-floats/articles/the-magic-of-overflow-hidden" rel="noreferrer">https://colinaarts-com.herokuapp.com/#making-room-for-floats/articles/the-magic-of-overflow-hidden</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload