j_m_g Posted March 4, 2023 Share Posted March 4, 2023 Hi all, I'm trying to get the products on my shop page to center. I got some code that worked great to center the products on mobile, but the products on desktop are still slightly to the left. Can someone help me with some custom css I can plugin? Here is the code I am using to center them on mobile: @media screen and (max-width:767px) { .products.collection-content-wrapper .products-flex-container .list-grid .grid-item { margin: 0 auto; } } Screen shot attached of the desktop view, which is off-center. Thank you! Link to comment
Beyondspace Posted March 5, 2023 Share Posted March 5, 2023 21 hours ago, j_m_g said: Hi all, I'm trying to get the products on my shop page to center. I got some code that worked great to center the products on mobile, but the products on desktop are still slightly to the left. Can someone help me with some custom css I can plugin? Here is the code I am using to center them on mobile: @media screen and (max-width:767px) { .products.collection-content-wrapper .products-flex-container .list-grid .grid-item { margin: 0 auto; } } Screen shot attached of the desktop view, which is off-center. Thank you! Can you share your URL so I can take a look? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
j_m_g Posted March 5, 2023 Author Share Posted March 5, 2023 Yes thank you, its www.seacraftvintage.com/shop Link to comment
Solution Beyondspace Posted March 5, 2023 Solution Share Posted March 5, 2023 I believe that this code makes your products smaller with only 80% of width. So they are not at aligned center. Try removing this code or add the following code to overwrite the one one .products.collection-content-wrapper .products-flex-container .list-grid .grid-item { width: 100%; } Support me by pressing 👍 or marking as solution if this is useful for you j_m_g and tuanphan 2 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Beyondspace Posted March 5, 2023 Share Posted March 5, 2023 My testing BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
j_m_g Posted March 5, 2023 Author Share Posted March 5, 2023 36 minutes ago, Beyondspace said: Can you share your URL so I can take a look? Thank you so much, that worked perfectly. I really appreciate it!! Beyondspace 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment