Jump to content

CSS Image Border Not Showing Up Completely (7.0)

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://oleander-round-6gnb.squarespace.com/

I've applied a small border around some images of the site (Brine template) using CSS and they look fine in the editor window. However, when I view the site live/refresh, some of the borders are showing up incomplete - for example, maybe the top of the image not having a border, or the right side not having a border, while the other sides do. I've attached screenshots as examples.


The code I've applied (and used on many other sites) is below: 

#BLOCK-ID img
{ border: 1px solid #000000;}

I've tried including '!important;' as well for specific ones that aren't working, but no success. If anyone could provide insight as to what may be causing this issue I would really appreciate it! I've never had this issue before and it's driving me nuts.

Site password: kassandra

Thank you!

Screen Shot 2022-01-17 at 3.33.26 PM.png

Screen Shot 2022-01-17 at 3.33.50 PM.png

Screen Shot 2022-01-17 at 3.40.00 PM.png

Edited by BrookeP
Link to comment
  • BrookeP changed the title to CSS Image Border Not Showing Up Completely (7.0)
  • Replies 7
  • Views 2.4k
  • Created
  • Last Reply

Top Posters In This Topic

2 hours ago, tuanphan said:

Use this code

#BLOCK-ID {
 img { 
		border: 1px solid #000000;
	}
  .has-aspect-ratio {
      overflow: visible !important;
  }
.image-block-wrapper {
    overflow: visible !important;
}
}

image.thumb.png.45cdd651940e92157696e3edffab10aa.png

@tuanphan This did the trick!!! Thank you so much it was driving me crazy. Appreciate the help!!

Link to comment
  • 2 months later...
On 3/23/2022 at 8:24 AM, jennifermorgancreative said:

@tuanphan PS  - I got this code to work temporarily but my OCD eyes see a little bit of image coming out of the sides (even though no one else would likely notice it).  

.sqs-block-image .design-layout-stack .intrinsic img
{width: 99% !important;
}

I'm sure this isn't the best solution, but it works for the moment!

I see it is fine. Can you take a screenshot of problem?

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
  • 1 year later...

I'm having a similar issue with a border not showing up in a carousel list, it is only appearing on top and left side, would anybody have a solution for this?

This is what I used

.user-items-list-carousel__media {
  border:3px solid #000; }

Screenshot 2023-11-13 at 16.47.01.png

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.