Jump to content

centre-align product block in shop

Go to solution Solved by tuanphan,

Recommended Posts

  • 8 months later...

Hmm — I'm having the same problem, and @tuanphan (who, let's be clear, really is a star!)'s answer isn't working for me. 

Could it be because I'm using SS 7.1?

If anyone has a notion on how to center-align a single product, please do share!

Run a test-prep company, and a group where little kids get together to make brunch and talk philosophy. Starting a school.

Link to comment
5 hours ago, brandonhendrickson said:

Hmm — I'm having the same problem, and @tuanphan (who, let's be clear, really is a star!)'s answer isn't working for me. 

Could it be because I'm using SS 7.1?

If anyone has a notion on how to center-align a single product, please do share!

Yes. It seems SS 7.1 use different class name. Can you share link to product page?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 months later...
On 9/11/2020 at 1:55 AM, BrianLehrer said:

@tuanphan, did you ever figure out the proper class name to fix this on 7.1? I've been trying everything and I can't get the single product thumbnail in the grid container to center. (it's the only product for sale) Thanks!!!

Can you share link? We can check easier.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 months later...

Hi! I'm still looking for a proper way to align a product to the center of the page. I've tried several code blocks from answers on the internet, but it used to deform the scale of the block. Now it's not even working anymore.

If anyone can help me with this it would be deeply appreciated. 

https://www.fuelyourbody.net/coach-personal

pass: body2020

Link to comment
On 12/1/2020 at 2:29 AM, 3ACOM said:

Hi! I'm still looking for a proper way to align a product to the center of the page. I've tried several code blocks from answers on the internet, but it used to deform the scale of the block. Now it's not even working anymore.

If anyone can help me with this it would be deeply appreciated. 

https://www.fuelyourbody.net/coach-personal

pass: body2020

Add to Home > Design > Custom CSS

.list-grid {
    justify-content: center;
    display: flex !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 months later...
On 3/16/2021 at 2:36 AM, ashantawines said:

Hi Tuan,

 

I tried to use the code and it worked however the image is tiny now in the shop.

here's a link to page: https://burgundy-paddlefish-hs2d.squarespace.com/shop

password: wildyeast

Is there a way to get the image to medium size?

Add to Design > Custom CSS

.list-grid {
    justify-content: center;
    display: flex !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 4/1/2021 at 1:09 AM, huypham said:

In mobile it stacks one on top of the other - Trying to get it to be side by side in mobile @tuanphan

Hi. It looks like you solved this?

On tablet, it looks ugly. You can add this to Design > Custom CSS

/* Tablet pricing tables */
@media screen and (max-width:991px) and (min-width:768px) {
[data-section-id="60523d6bbab3017fc9714817"] .content {
    width: 90% !important;
}
}

image.thumb.png.a6a49bf20b6549342ddd7a7b376d0ead.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 4/13/2021 at 6:48 AM, Rudybro said:

Hi - I'm trying to do what the first person asked - centering a single product. The CSS you provided does center the object but it makes it extremely small. Any other solves?

Can you share link to page where you have problem? We can check again easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 weeks later...
  • 2 months later...
On 7/8/2021 at 9:25 PM, Boffix said:

Also having a problem, the code worked in making them center aligned but now they are all different sizes.. 

Site is: https://boffix.squarespace.com/

Screenshot 2021-07-08 at 15.22.56.png

Screenshot 2021-07-08 at 15.23.22.png

Add to Design > Custom CSS

.list-grid {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...
On 12/3/2020 at 7:24 PM, tuanphan said:

Add to Home > Design > Custom CSS

.list-grid {
    justify-content: center;
    display: flex !important;
}

 

@tuanphan Hi, your code worked.

is there a possible way to align the single product to the center without flexing it? Also, it affects all my store pages because i have like 7 store pages. i want to just align a single store page.  thanks in advance for your help

squarespace.png

Link to comment
On 8/13/2021 at 4:28 PM, joshyrivers said:

@tuanphan Hi, your code worked.

is there a possible way to align the single product to the center without flexing it? Also, it affects all my store pages because i have like 7 store pages. i want to just align a single store page.  thanks in advance for your help

squarespace.png

Add to your screenshot page Header

<style>
  .list-grid {
    justify-content: center;
    display: flex !important;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 8/15/2021 at 5:55 AM, tuanphan said:

Add to your screenshot page Header

<style>
  .list-grid {
    justify-content: center;
    display: flex !important;
}
</style>

 

is there a possible way to not flex the product when you hover the mouse on the image? same on the first image attached below. the product becomes huge when i hover the mouse into it

Untitled1.png

Untitled.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.