Products not in a row on mobile device
-
Hi I have a problem: As I didn’t want just one product shown in my product catalogue on mobile devices I used the following code to show two per row:
@media screen and (max-width: 768px) {.page-template-template-fullwidth-php .site-main ul.products.columns-4 li.product, .page-template-template-homepage-php .site-main ul.products.columns-4 li.product, .storefront-full-width-content .site-main ul.products.columns-4 li.product { width: 49%; float: left; margin-right: 1%; }}
Unfortunately now every 5th (or sometimes 7th or whatever) item is alone in its row, something like that:
O O
O O
O
O O
O O
O O
OI’ve read several threads on this topic but nothing I tried helped. Does anyone know something else I could try? ??
Thanks so much!
Cheers, DianaThe page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Products not in a row on mobile device’ is closed to new replies.