Jump to content

Center Content on Product Detail Page

Recommended Posts

Site URL: http://untodust.co/shop/desert-dreamer-print

I am looking to edit how my Product Detail Page looks on mobile.  In desktop view the Title, Purchase button and info is aligned left and looks great... but on mobile view it looks incorrect.  Is there any CSS that I can add to center-align the Product Detail page on mobile?

 

http://untodust.co/shop/desert-dreamer-print

Screen Shot 2020-04-15 at 10.33.17 AM.png

Link to comment
  • 2 months later...
  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

On 6/21/2020 at 1:32 AM, barparttime said:

@RyanDejaegher

Of course! 

https://barparttime.squarespace.com/
Password is: thanksryan

Really appreciate the help!

Add to Home > Design > Custom CSS

@media screen and (max-width:700px) {
div#productDetails * {
    text-align: center !important;
}
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 7 months later...
On 2/15/2021 at 6:58 PM, Davidreijmer said:

@tuanphan This did not work for me. 

Is there another way perhaps? or other code?

Thank you


@media screen and (max-width:700px) {
div#productDetails * {
    text-align: center !important;
}
}

Code works for above site. Can you share link to product on your site?

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.