Jump to content

Centering Gallery Images?

Recommended Posts

Site URL: https://cinnamon-penguin-le58.squarespace.com/ingredients-gallery

I've tried using the code suggestions listed - but can't get it to work. I just want my gallery images to be centered - as opposed to flush left. Just can't figure out what I'm doing wrong.

Password to the dev site is: Averystrail2021

Here's the code I tried using:

/* Center gallery grid */
#collection-6045579afe7d2c0ae09521ed
.gallery-grid--layout-grid .gallery-grid-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
}

Link to comment
  • Replies 3
  • Views 644
  • Created
  • Last Reply
25 minutes ago, Wolfsilon said:

Hi Allison,

Were you able to fix this? I'm taking a look at your website now.

Not yet - I tried using this code instead - but they just stay left justified!

body#collection-604556e3098f140fbbec2eb9 .sqs-gallery-block-grid .sqs-gallery-design-grid {
    display: flex;
    justify-content: center;
      flex-wrap: wrap;

I have no idea what I'm doing wrong.

Link to comment
On 3/16/2021 at 5:06 AM, Allison_Blackstone said:

Not yet - I tried using this code instead - but they just stay left justified!

body#collection-604556e3098f140fbbec2eb9 .sqs-gallery-block-grid .sqs-gallery-design-grid {
    display: flex;
    justify-content: center;
      flex-wrap: wrap;

I have no idea what I'm doing wrong.

try justify-content: center !important; display: flex !important; flex-wrap: wrap;

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.