This topic has 4 replies, 2 voices, and was last updated 6 years ago ago by Rose Tyler
Hi – I’m trying to add a 1px border around the image on single product page but it seems to be rendering funny. how can i fix this? see below.
Hello,
Please try this custom css code:
.single-product .product-images .swiper-wrapper img {
border: 1px solid black;
}
.single-product .thumbnails-list a {
margin-top: 3px;
margin-bottom: 3px;
}
Regards
Thanks Rose for the help! So it’s a bit finicky with the way the 1px border renders. I fiddled with this a bit more and got a crisper 1px line using below.
.single-product #swiper-unique-id-0 {border: 1px solid #e8e8e8; margin-bottom: 10px;}
.single-product .main-images {margin-bottom: 0px;}
.single-product .thumbnails-list .thumbnail-item {border: 1px solid #e8e8e8;}
You’re welcome!
Regards
You must be logged in to reply to this topic.Log in/Sign up