Note that there are some explanatory texts on larger screens.

plurals
  1. POBootstrap 3 - Grid on several dedices looks ugly with diffent contents height
    primarykey
    data
    text
    <p>I played a bit with bootrap 3 grid system and several devices. You can copy my code in your editor for testing:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;TEST&lt;/title&gt; &lt;link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" /&gt; &lt;script type='text/javascript' src='http://getbootstrap.com/dist/js/bootstrap.min.js'&gt; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="container"&gt; &lt;div class="row"&gt; &lt;div class="col-lg-3 col-md-6 col-xs-12 text-center"&gt; &lt;div style="border:1px solid red; padding:5px; margin:5px; width:100px; height:50px;"&gt;BOX 1&lt;/div&gt; &lt;/div&gt; &lt;div class="col-lg-3 col-md-6 col-xs-12 text-center"&gt; &lt;div style="border:1px solid red; padding:5px; margin:5px; width:100px;"&gt;BOX 2&lt;/div&gt; &lt;/div&gt; &lt;div class="col-lg-3 col-md-6 col-xs-12 text-center"&gt; &lt;div style="border:1px solid red; padding:5px; margin:5px; width:100px;"&gt;BOX 3&lt;/div&gt; &lt;/div&gt; &lt;div class="col-lg-3 col-md-6 col-xs-12 text-center"&gt; &lt;div style="border:1px solid red; padding:5px; margin:5px; width:100px;"&gt;BOX 4&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>This code works fine. When I make the browser smaler I will get first 2 cols and then 1 col.</p> <p>The problem is, when I have 2 col, the output in the browser looks ugly because the content in box 1 is not as height as the other boxes. This creates a big space in the output. </p> <p>Screen: <a href="http://awesomescreenshot.com/0a920zcld0" rel="nofollow">http://awesomescreenshot.com/0a920zcld0</a></p> <p>When all contents have the same height, it looks very good.</p> <p>I will use this technic for category listing with images. These images do not have the same height and it looks very ugly. Is there any way to solve this problem?</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. 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