Jump to content

Image insets when applying CSS with block ID

Recommended Posts

Image insets from border when applying CSS to image with block ID with below CSS, but fits snugly when the same CSS is applied to the property selector .image-block-wrapper. See two uploaded images below for comparison. I only want to apply to select images, not universally. If I can resolve, I'll add more feature image block-IDs to the entry. Thank you!

#block-dd9a8d05f998d8510303 { 
	border: 1px solid hsla(45, 5%, 90%, 1.0);
	border-radius: 20px;
	box-shadow: 0px 0px 20px 5px hsla(45, 5%, 45%, 0.2);
}

Relevant web page

CSS to Block ID insets image:

Screenshot2024-03-18at15_20_29.thumb.png.4188e6c7313bd9474410522b24c575fc.png

CSS to property selector .image-block-wrapper fits image snugly:

Screenshot2024-03-18at15_22_47.thumb.png.16e1783f8b51c55e924242f239999a74.png

Link to comment
  • Replies 3
  • Views 671
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 3 weeks later...

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.