Jump to content

Adding a border to images in gallery

Recommended Posts

Site URL: https://ewgarts.com

Sorry, I know similar questions have been asked here before, but  the CSS code I've tried either does nothing, or doesn't produce the desired effect. I want to place a border around each image in my portfolio, say 3px, but not the captions. In the screenshot below, I show a CSS sample that only puts a border on the left and top - so is something getting clipped or overlayed?

border.png

Edited by JohnCabal
update
Link to comment
  • Replies 1
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 10/16/2021 at 9:40 AM, JohnCabal said:

Site URL: https://ewgarts.com

Sorry, I know similar questions have been asked here before, but  the CSS code I've tried either does nothing, or doesn't produce the desired effect. I want to place a border around each image in my portfolio, say 3px, but not the captions. In the screenshot below, I show a CSS sample that only puts a border on the left and top - so is something getting clipped or overlayed?

border.png

Add to Design > Custom CSS

body.homepage .gallery-masonry .gallery-masonry-item-wrapper {
    border: 3px solid red;
}

 

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

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.