Jump to content

Adding Image Border to Image Card

Recommended Posts

Site URL: https://www.designbylorena.com/

I'm trying to add a border around each image in a list section using:

.list-image {border:2px solid #ea4136} 
 

For some reason, it is only targeting the top and left borders (see attached image). I've tried targeting the top, bottom, left, and right with code but still only shows the left and top. 

 

Any suggestions? 

Screen Shot 2022-02-13 at 5.31.38 PM.png

 

66196f5fc9d09.pngspacer.gif

LORENA ALVAREZ RUIZ

Brand & Web Designer | Fiama Lore

Podcast Host | Conversations on Death

ABOUT ME / SERVICES / RESOURCES / INQUIRE

66198695f02b0.pngspacer.gif InstagramLinkedInfa-outline-16-microphonealt-131313.png

Link to comment
11 hours ago, Lorena1223 said:

I'm trying to add a border around each image in a list section using:

.list-image {border:2px solid #ea4136} 
 

For some reason, it is only targeting the top and left borders (see attached image). I've tried targeting the top, bottom, left, and right with code but still only shows the left and top. 

Hey @Lorena1223 try to add next code in Custom CSS:

.list-item-media {
  border: 2px solid #ea4136;
}

 

SquareRefresh, premium plugins & templates that have an elevated feel.

Plugins: Have your site stand out. 
Templates: Our templates are designed with versatility in mind.
Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.

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.