Jump to content

Image boarder on gallery images

Recommended Posts

I want to add a small white outline to all of my gallery images that is offset so it appears on top of all of the images. With the code below I have been able to get it to work somewhat - the issue I am having with the gallery is that some of the outlines are getting cropped off with the images instead of aligning to the cropped square box. (see image). Any ideas on how I could get the outline to match up with the cropped box would be appreciated!

 

.sqs-gallery-block-grid .slide .margin-wrapper a.image-slide-anchor[href] img {

cursor: pointer;

outline: #fff solid 3px;

outline-offset: -20px;

}

Screen Shot 2020-01-24 at 4.05.55 PM.png

Link to comment
  • Replies 2
  • Views 450
  • Created
  • Last Reply

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.