Jump to content

Code to add image border not working correctly

Recommended Posts

Posted

Hey there! 

I'm trying to add image borders to some images (with the link #border) and using this code 

.sqs-block-image-link[href*="border"] {

  img {

    border:2px solid black !important;

  }

}

But it's only showing a border on the top and left side of the image, not all the way around. 

Here's the link to the website...

thunderboltayurveda.squarespace.com
password: ayurveda

Thanks for the help! 

Screen Shot 2023-06-20 at 2.17.56 PM.png

  • Replies 3
  • Views 494
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
Posted

Thanks for your reply!

=I did use that code to make it work but I was hoping I could use the CSS that targeted any image with  "#border" as the link. Used the block ID method as a workaround.

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.