Jump to content

Padding around gridded images

Recommended Posts

Site URL: https://sprout-tuna-swnf.squarespace.com/sell-from-home/video-meeting-preparation

In the custom editor, where I can select how much padding I want between my gridded images, I can only make the padding go up to 50px. However, I actually want the padding to be much bigger than this so the images are much smaller compared to their titles. How can I add more padding around my grid images to help significantly reduce the size of my images?

image.png.f69b4278450ad78594373037bd3c8d4c.png

image.png.2c453cfa0c03b16be6f90b1a1944981f.png

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Add to Home > Design > Custom CSS

div#block-86f7f26916e752a3f194 img {
    width: 50% !important;
    height: auto !important;
}
div#block-86f7f26916e752a3f194 a {
    padding-bottom: 50%;
    margin: 0 auto !important;
    text-align: center;
}

 

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

Thanks, that works really well. But how come when I try and do the same thing on another page it doesn't work?

For example on this page is displays like this - https://www.ridgemountpr.co.uk/sell-from-home/online-event-promotion

image.png.55f78ffc3dd293636ae54d0428ab65fb.png

The code I used was the same as the one as you wrote, but with a different block id. This was the code:

div#block-e4fe438a51cb66847a03 img {
    width: 50% !important;
    height: auto !important;
}
div#block-e4fe438a51cb66847a03 a {
    padding-bottom: 50%;
    margin: 0 auto !important;
   text-align: center;
}

 

Link to comment
div#block-e4fe438a51cb66847a03 img {
    width: 50% !important;
    height: auto !important;
	top: 0 !important;
}
div#block-e4fe438a51cb66847a03 a {
    padding-bottom: 50%;
    margin: 0 auto !important;
   text-align: center;
	overflow: visible !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

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.