Jump to content

Add Border to Image - Issue

Recommended Posts

Posted (edited)

Hi all! I've looked over all the other discussions and cannot find a css that works for my issue. I'm trying to add a plain black border to all images on my site. However, no matter which I plug in, it will not surround the entire image.  
This code only adds border to the left and the top:
img {
    border: 2px solid black;
  }

This code only adds border to the right and the left:
.fluid-image-container.sqs-image-content {
    overflow: visible !important;
    border: 2px solid #f26522;
}

Thank you to anyone that has any input on how I can achieve a border all the way around!

www.cassietrottier.com

password: trottier

Edited by CassieT15
Link to comment
  • Replies 5
  • Views 603
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

4 hours ago, CassieT15 said:

My apologies. Forgot the lowercase 🤦🏼‍♀️

password: trottier

You can use this CSS code

.sqs-image-content {
    border: 3px solid #f26522;

}
.content-fill img {
    top: 10px !important;
    left: 10px !important;
    width: calc(~"100% - 20px") !important;
    height: calc(~"100% - 20px") !important;
}

image.thumb.png.d5077eed86ffca2a4e114b61ff9ba138.png

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.