Jump to content

How to add borders to gallery thumbnails

Recommended Posts

Site URL: https://sdbrosconsulting.com

Hey, I was looking to add a border to the thumbnail of the active picture of a gallery for a client.

I did not found much online so I came up with this code but it only adds a border to the top of the active thumbnail.

When trying to add the border to the entire thumbnail (using border: instead of border-top:, the bottom border was not visible, neither when using border-bottom:).

I'm think it actually looks better with the border on top only but if anyone knows how to have the border all-over please share!  .

sqs-block .sqs-gallery-thumbnails .sqs-gallery-design-strip-slide {
} //Changes opacity of thumbnails not selected

.sqs-block .sqs-gallery-thumbnails .sqs-gallery-design-strip-slide.sqs-active-slide {
border-top: 1px solid #000; 
} //Changes opacity of selected/active thumbnail and sets a border on top of it


Link to comment
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply


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.