Jump to content

CSS Not Working on Right and Bottom of Image

Recommended Posts

I am trying to add a box shadow  to the images on an about page. I know I am targeting the correct thing because I can see the change. However, any CSS I try to use only applies to the top and left of the images. I have tried adjusting the margins. I tried adding an overflow property, although I'm not sure I applied that to the appropriate container. Here is just some code I added to show that it isn't working properly. I know it's not the box shadow code that I want. 

section[data-section-id="642c3ce4e86c3179098b0e41"] img {
  border: 5px solid var(--lime);
}

Capture.PNG

Link to comment
  • Replies 5
  • Views 425
  • Created
  • Last Reply

Top Posters In This Topic

On 5/8/2023 at 9:37 PM, bobbins_and_barbells said:

https://www.localslivemusic.com/about-us

 

Sorry. I thought I had included it. 

Use this code instead

section[data-section-id="642c3ce4e86c3179098b0e41"] .sqs-image-content {
  border: 5px solid var(--lime);
}

 

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
On 5/10/2023 at 3:04 AM, bobbins_and_barbells said:

Well that sort of worked. Some images it's only showing the border on the left and right. Some images it's showing on three sides. I tried adjusting the margins with no success. 

Can you add & keep the code? I can check it again easier

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.