Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I don't think this exact solution can be achieved with Flexbox, but you can use advanced selectors instead like this <a href="http://jsbin.com/acejes/14/edit" rel="nofollow">http://jsbin.com/acejes/14/edit</a></p> <pre><code>&lt;div class="l-col_33--all"&gt; &lt;div class="l-col l-col_33"&gt; &lt;div class="l-col l-col_50"&gt; &lt;img src="http://placehold.it/350x150" title="" alt="" /&gt; &lt;/div&gt; &lt;div class="l-col l-col_50"&gt; &lt;p class="product-title"&gt;1st product Decorated Pink High Heels&lt;/p&gt; &lt;p class="product-price"&gt;$25.99&lt;/p&gt; &lt;p class="product-title"&gt;Decorated Pink High Heels&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="l-col l-col_33"&gt; &lt;div class="l-col l-col_100"&gt; &lt;img src="http://placehold.it/350x150" title="" alt="" /&gt; &lt;/div&gt; &lt;div class="l-col l-col_100"&gt; &lt;p class="product-title"&gt;2nd product Decorated Pink High Heels&lt;/p&gt; &lt;p class="product-price"&gt;$25.99&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="l-col l-col_33"&gt; &lt;div class="l-col l-col_50"&gt; &lt;img src="http://placehold.it/350x150" title="" alt="" /&gt; &lt;/div&gt; &lt;div class="l-col l-col_50"&gt; &lt;p class="product-title"&gt;3rd product Decorated Pink High Heels&lt;/p&gt; &lt;p class="product-price"&gt;$25.99&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;style&gt; img { max-width: 100%; } body { border: 1px solid black; } p { padding-right: 10px; padding-left: 10px; } /* E.g. Use an "--all" modifier class on a div wrapper to flush columns against their container */ .l-col_33--all .l-col_33 { width: 32%; margin-bottom: 40px; background-color: red; } .l-col_33--all .l-col_33:nth-child(1), .l-col_33--all .l-col_33:nth-child(3n+1) { margin-right: 2%; border-bottom: 3px solid green; } .l-col_33--all .l-col_33:nth-child(3), .l-col_33--all .l-col_33:nth-child(3n) { margin-left: 2%; border-bottom: 3px solid blue; } /* Clear rows */ .l-col_33--all .l-col_33:nth-child(3n+1) { clear: left; } .l-col_33--all:after { /* clearfix */ content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; } .l-col { position: relative; float: left; } .l-col_33 { width: 33%; } &lt;/style&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. 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