Jump to content

Add padding to image border on blog and summary block

Recommended Posts

Posted

Site URL: http://www.sherriedickinson.com

Hi! I'm trying to add a padding to the blog and summary image block to look like the picture attached.  I tried adding padding and border-padding to the code below but to no avail. Can anyone help me, please? Thank you!

/*Blog Summary*/
section.blog-image-wrapper a {
    border: 1px solid black;
    display: block;
}
.sqs-block-summary-v2 
.img-wrapper, 
.sqs-block-summary-v2 
.sqs-video-wrapper {border: 1px solid black;
}

1700582841_ScreenShot2021-08-05at1_51_55PM.png.6f16847172015304a991a288e5ef1a0b.png

  • Replies 9
  • Views 1.2k
  • Created
  • Last Reply
Posted
On 8/9/2021 at 2:20 AM, louieandthird said:

Hi @tuanphan

Here's the actual blog: https://www.sherriedickinson.com/blog

Here's the summary block: https://www.sherriedickinson.com/journal

Blog list. It looks like you solved?

With summary. You want to 2 lines border + Space between border-image??

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

Posted
19 hours ago, tuanphan said:

Blog list. It looks like you solved?

With summary. You want to 2 lines border + Space between border-image??

The blog list is not fixed. I just uploaded images with the border already. 
 

I’d like only one line of border with space between the border and image. Thank you!!

I have a question about styling buttons as well. Should I tag you in the question I submitted?

  • 1 month later...
Posted
On 10/7/2021 at 1:23 AM, tuanphan said:

Yes. Sorry. Too many message recently. What is problem now?

tuan24.png.fc89c3c767c7d256110ada3f3d33ec46.png

No problem! Still the same issue as the original post. I would like to have some padding between the image and the border so it looks like the picture below. I'd like this to be applied on both the blog list and summary block. Thank you!!

 

Screen Shot 2021-10-08 at 07.11.17.png

Posted
On 10/8/2021 at 9:12 PM, louieandthird said:

No problem! Still the same issue as the original post. I would like to have some padding between the image and the border so it looks like the picture below. I'd like this to be applied on both the blog list and summary block. Thank you!!

 

Screen Shot 2021-10-08 at 07.11.17.png

Remove this CSS

section.blog-image-wrapper a {
    border: 1px solid #000;
    display: block;
}

Add this

section.blog-image-wrapper {
    border: 1px solid black;
    padding: 50px;
}
.summary-thumbnail-container {
    border: 1px solid black;
    padding: 50px;
}

 

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

Posted
4 hours ago, tuanphan said:

Remove this CSS

section.blog-image-wrapper a {
    border: 1px solid #000;
    display: block;
}

Add this

section.blog-image-wrapper {
    border: 1px solid black;
    padding: 50px;
}
.summary-thumbnail-container {
    border: 1px solid black;
    padding: 50px;
}

 

Perfectly worked! Thank you so much!!

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.