Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Rather than adding an additional <code>div</code> for styling, you should just add another style to the row, e.g., <code>row-padded</code>, and pass new styles down to the children of it accordingly. For instance:</p> <h3>CSS</h3> <pre><code>.row-padded { padding: 35px; background-color: #F7F7F7; border: 1px solid #DDD; } .row-padded .span4 { background-color: #bbb; width: 30%; } </code></pre> <p>​</p> <h3>HTML</h3> <pre class="lang-html prettyprint-override"><code>&lt;div id="mydiv" class="container"&gt; &lt;div class="row row-padded"&gt; &lt;div class="span4"&gt; &lt;ul&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;!-- .span4 --&gt; &lt;div class="span4"&gt; &lt;ul&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;!-- .span4 --&gt; &lt;div class="span4"&gt; &lt;ul&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;li&gt;Random link&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;!-- .span4 --&gt; &lt;/div&gt; &lt;!-- .row --&gt; &lt;/div&gt; &lt;!-- container --&gt;​ </code></pre> <h3><a href="http://jsfiddle.net/dXxLm/">JSFiddle</a></h3> <p><strong>Note:</strong> You probably want to define a responsive explicit value (in px) for the <code>.span4 .row-padded</code> <strong>width</strong> rather than merely the percent width. I only used the percent for brevity.</p>
    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. 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