Products not centered on some screen sizes

Hello,

when viewing a site with multiple products, the individual products are usually centered in the middle of the screen, with the gaps on the left/ right side being equally big. On some mobile devices/screen sizes, however, the products aren’t centered but are aligned with the left end of the page.
Screenshots below for reference.

Centered products:

Left-Aligned products:

Kind regards

1 Like

@YBodv

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

Hi @YBodv ,

Please send your site and if your site is password protected, please send me the password. I will check it.

Hello,
thank you for your response.
This is the site URL: https://www-odv-shop-de.myshopify.com
The error is present in all categories (for example in “https://www-odv-shop-de.myshopify.com/collections/speiseole”) except the “start” category.

You will be able to see the alignment error easily when you resize your browser window, forcing the page to reformat the elements.

Kind regards

1 Like

@YBodv

can you try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/base.css ->paste below code at the bottom of the file.
ul#product-grid {justify-content: center;}
1 Like