Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Although your markup doesn't keep the hierarchy recommended by the bootstrap doc (<code>.container &gt; .row &gt; .span &gt; .well</code>), have you thought about absolute positioning ? No JS involved.</p> <p><a href="http://jsfiddle.net/Sherbrow/wc4g9/5/" rel="nofollow">Demo (jsfiddle)</a></p> <pre class="lang-html prettyprint-override"><code>&lt;div class="container" style="position: relative;"&gt; &lt;div class="row faux-row"&gt; &lt;div class="span3 well"&gt;&lt;/div&gt; &lt;div class="span3 well"&gt;&lt;/div&gt; &lt;div class="span3 well"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="row vrai-row"&gt; &lt;div class="span3"&gt;&lt;p&gt;...&lt;/p&gt;&lt;/div&gt; &lt;div class="span3"&gt;&lt;p&gt;...&lt;/p&gt;&lt;/div&gt; &lt;div class="span3"&gt;&lt;p&gt;...&lt;/p&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <pre class="lang-css prettyprint-override"><code>.vrai-row { position: relative;z-index: 101; } .faux-row { position: absolute;top: 0;left: 0;right: 0;bottom: 0;z-index: 100; } .faux-row .well { height: 100%; /* The following is because .span* elements should not have paddings, margins nor borders see http://stackoverflow.com/a/11299934/1478467 */ box-sizing: border-box; } </code></pre> <p>If you want to set padding, margin, borders (styling that actually take space), it should be applied to the real one and the <em>faux</em> one - not the columns themselves, but their children for example.</p> <p>The downside is that (as it is in the demo) you have to stick to the non-responsive grid (fluid or static). But it should work with a few more rules encapsulated in media queries.</p> <p><hr /></p> <h3>Update</h3> <p>Responsiveness is actually not so hard to get, if you keep the <code>.well</code> class on all spans :</p> <p><a href="http://jsfiddle.net/Sherbrow/wc4g9/6/" rel="nofollow">Demo responsive (jsfiddle)</a></p> <pre class="lang-css prettyprint-override"><code>@media (max-width: 767px) { .faux-row { display: none!important; } } @media (min-width: 768px) { .vrai-row .well { /* Deactivate well styles */ background-color: transparent; border-color: transparent; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } } </code></pre>
    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