Jump to content

3 Images - Column Equal Width Workaround

Recommended Posts

Posted

One of the things that disappoints us about Squarespace is the inability to do 3 equal column layouts with images if you need space on the sides. Sometimes you don't want giant images and saving images with a ton of whitespace canvas is just kinda silly and looks bad on mobile. Seems every other web platform has kept up with the demands of responsive layouts.

Maybe others are using this hack (or a better one), but posting this in case anyone else is struggling.

So to center three images...

  1. Create a BLANK page section with MANAGE SECTIONS.
  2. Remember the name of this section for CSS in Step 4.
  3. Add your three equal size height and width images (like client / customer logos with same pixel dimensions.)
  4. Go to Custom CSS and add this code... #yoursectionname {margin-left: auto; margin-right: auto; display: block; width: 75%;}
    1. Adjust the width to wider or more narrow.

Works like a charm for us. Hope this helps.

  • 7 months later...
  • Replies 7
  • Views 5.6k
  • Created
  • Last Reply
  • 2 months later...
Posted
On 5/27/2020 at 2:52 AM, MistyStatum said:

Is there a way to do this without it affecting the banner image behind it? It’s making the background image the same width as well.... thanks!!!

I noticed this as well recently.

@SDAgency is there a way to avoid this?

Thank you for your help in advance

 

  • 1 month later...
Posted

Hi folks,

Just wanted to follow up. This is an amazing hack! Has anyone found a way to prevent the margins from applying to the background as well? @SDAgency?

Thanks!

Posted
On 7/14/2020 at 4:57 AM, Samuel said:

Hi folks,

Just wanted to follow up. This is an amazing hack! Has anyone found a way to prevent the margins from applying to the background as well? @SDAgency?

Thanks!

If 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!)

  • 2 weeks later...
  • 1 year later...
Posted

I was able to fix the background issue by adding this to the code:

 

#yoursectionname .sqs-layout {margin-left: auto; margin-right: auto; display: block; width: 75%;}

 

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.