Jump to content

How can I center my gallery grid instead of having it left-aligned?

Recommended Posts

I have several gallery pages which I would like to display in Grid format. However, some galleries have just one or two images in them. How can I edit the gallery to center the images in the middle of the page, rather than having them left-aligned? I am using the York template.

Link to comment
  • Replies 7
  • Views 1.8k
  • Created
  • Last Reply
  • 9 months later...
  • 1 month later...
On 10/29/2020 at 9:43 AM, laurwhyyy said:

Hi @tuanphan

I am having the same issue! On this page https://laurawhiteuhlir.com/design and this page https://laurawhiteuhlir.com/olive. I'd like it to be full page like it is on the homepage https://laurawhiteuhlir.com/

Any insight is appreciated!

Thanks!

Add to Page Settings > Advanced > Header

<style>
  section#page {
    max-width: 100%;
}
</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

Archived

This topic is now archived and is closed to further replies.


×
×
  • 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.