Jump to content

add a border with padding to a blog grid image

Go to solution Solved by Web_Solutions,

Recommended Posts

On 4/11/2024 at 3:21 PM, moonlitdesign said:

www.moonlitdesign.uk/blog

 

hey im having issues with the padding of my blog grid images. I tried to add a border with 8px padding but it is affecting the alignment of the image. i have tried margin auto etc but not working!

 

thanks

 

Screenshot 2024-04-11 at 10.19.27.png

What is the website URL?

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
  • Solution
Posted (edited)
13 hours ago, moonlitdesign said:

www.moonlitdesign.uk/blog

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.blog-basic-grid .image-wrapper img {
    left: 0 !important;
    top: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

 

 

Screenshot_157.png

Edited by Web_Solutions

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
5 hours ago, Web_Solutions said:

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.blog-basic-grid .image-wrapper img {
    left: 0 !important;
    top: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

 

 

Screenshot_157.png

thank you so much, really appreciate your help worked perfectly!!!

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.