Archived topic
space issue when change product columns to flex
1 reply · Started by jasond on September 10, 2019
Viewing posts 1–2 of 2
Can you help me to check? I updated CSS as below to use flex on mobile but the first & last row of products on the homepage has an issue and they are not aligned correctly like other ones.
On product category pages everything is good, except the homepage where I use the product shortcode
Thanks a lot
@media (max-width: 768px) {
.woocommerce ul.products {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.woocommerce ul.products li.product {
background: #fff;
padding: 3px;
margin: 0 0 0.5em 0!important;
width: 47%!important;
border-radius: 3px;
}
}
Hi there,
include this within your Media query to remove the clearfix elements:
.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before {
display: none;
}
This archived topic is closed to new replies.