Having a problem with responsive margins? Take a look at this site as an example:
When I shrink the screen size, the margins decrease and smoothly transition from 4 to 2 columns.
In my case, it does something similar but the issue is that the margin doesn't adjust before reverting to 2 columns. This causes the thumbnails within each column to reduce because it maintains a 7.5% margin on either side.
Does anyone know how I can fix this to match the behavior of Bali Body?
Sample code:
<div class="post_content">
<a class="" href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/">
</a><h3><a class="" href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/"></a>
<a href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/">Genji Challa – Ethiopian Single Origin</a></h3>
<a href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/#respond"><div class="star-rating"><span style="width:0%"></span></div></a>
<span class="tastenotes">Nectarine, blood orange, redcurrant</span>
...
</div>
<div class="post_content">
<a class="" href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/">
</a><h3><a class="" href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/"></a>
<a href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/">Genji Challa – Ethiopian Single Origin</a></h3>
<a href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/#respond"><div class="star-rating"><span style="width:0%"></span></div></a>
<span class="tastenotes">Nectarine, blood orange, redcurrant</span>
...
</div>
<div class="post_content">
<a class="" href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/">
</a><h3><a class="" href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/"></a>
<a href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/">Genji Challa – Ethiopian Single Origin</a></h3>
<a href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/#respond"><div class="star-rating"><span style="width:0%"></span></div></a>
<span class="tastenotes">Nectarine, blood orange, redcurrant</span>
...
</div>
<div class="post_content">
<a class="" href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/">
</a><h3><a class="" href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/"></a>
<a href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/">Genji Challa – Ethiopian Single Origin</a></h3>
<a href="https://balancecoffee.co.uk/stage/product/genji-challa-ethiopian-single-origin/#respond"><div class="star-rating"><span style="width:0%"></span></div></a>
<span class="tastenotes">Nectarine, blood orange, redcurrant</span>
...
</div>
CSS:
.woocommerce-page ul.products li.product.column-1_4 {
width: 25%;
}
.woocommerce ul.products, .woocommerce-page ul.products {
margin-right: -30px;
margin-bottom: 0;
}
.archive .slider_boxed,
.content_wrap,
.archive .content_container{
width:85%;
margin: 0 auto;
}