Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Add all in the same row, like:</p> <pre><code>&lt;div class="container"&gt; &lt;div class="row"&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6"&gt;1&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6"&gt;2&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6"&gt;3&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6"&gt;4&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6"&gt;1&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6"&gt;2&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6"&gt;3&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6"&gt;4&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>update</strong></p> <p>The above layout will break when your columns don't have the same height. Or more specific when one is taller than the next one in the row. For example give your second column in first row a height of 100px will give you:</p> <p><img src="https://i.stack.imgur.com/4mTTj.png" alt="enter image description here"></p> <p>To fix this you have to apply the <a href="http://getbootstrap.com/css/#grid-responsive-resets" rel="nofollow noreferrer">Responsive column resets</a>. Doing this the above will become:</p> <pre><code>&lt;div class="container"&gt; &lt;div class="row"&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6" style="background-color:blue;"&gt;1&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6" style="background-color:red;height:100px;"&gt;2&lt;/div&gt; &lt;div class="clearfix visible-sm"&gt;&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6" style="background-color:yellow;"&gt;3&lt;/div&gt; &lt;div class="clearfix visible-md"&gt;&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6" style="background-color:green;"&gt;4&lt;/div&gt; &lt;div class="clearfix visible-sm visible-lg"&gt;&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6" style="background-color:blue;height:100px;"&gt;1&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6" style="background-color:red;"&gt;2&lt;/div&gt; &lt;div class="clearfix visible-sm visible-md"&gt;&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6" style="background-color:yellow;"&gt;3&lt;/div&gt; &lt;div class="col-lg-3 col-md-4 col-sm-6" style="background-color:green;"&gt;4&lt;/div&gt; &lt;div class="clearfix visible-sm visible-lg"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </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