Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you look at Twitter's own <a href="https://github.com/twitter/bootstrap/blob/51e4e77034e14074cb442138e84b98efd288ccfd/examples/container-app.html" rel="noreferrer">container-app.html</a> demo on GitHub, you'll get some ideas on using borders with their grid.</p> <p>For example, here's the extracted part of the building blocks to their 940-pixel wide 16-column grid system:</p> <pre class="lang-css prettyprint-override"><code>.row { zoom: 1; margin-left: -20px; } .row &gt; [class*="span"] { display: inline; float: left; margin-left: 20px; } .span4 { width: 220px; } </code></pre> <p>To allow for borders on specific elements, they added embedded CSS to the page that reduces matching classes by enough amount to account for the border(s).</p> <p><img src="https://i.stack.imgur.com/8AxU2.jpg" alt="Screenshot of Example Page"></p> <p>For example, to allow for the left border on the sidebar, they added this CSS in the <code>&lt;head&gt;</code> after the the main <code>&lt;link href="../bootstrap.css" rel="stylesheet"&gt;</code>.</p> <pre class="lang-css prettyprint-override"><code>.content .span4 { margin-left: 0; padding-left: 19px; border-left: 1px solid #eee; } </code></pre> <p>You'll see they've reduced <code>padding-left</code> by <code>1px</code> to allow for the addition of the new left border. Since this rule appears later in the source order, it overrides any previous or external declarations.</p> <p>I'd argue this isn't exactly the most robust <em>or</em> elegant approach, but it illustrates the most basic example.</p>
    singulars
    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. 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