Shopify themes, liquid, logos, and UX
Could someone help me with insetting the borders on my product grid on the collection page? Currently I have coded a border on so that it outlines the images on my product grid:
However I can't figure out how to inset this border so it actually sits on top of the inside of the image slightly - like below:
any advice would be a major help!
Thanks
Solved! Go to the solution
This is an accepted solution.
Hi,
1. Go to Online Store
2. Click edit code
3. Find folder assets
4. Find file theme.css
5. Add below CSS code
.product-item__image {
position: relative;
}
.product-item__image::after {
content: '';
position: absolute;
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
border: 2px solid white;
pointer-events: none;
}
This is an accepted solution.
Hi,
1. Go to Online Store
2. Click edit code
3. Find folder assets
4. Find file theme.css
5. Add below CSS code
.product-item__image {
position: relative;
}
.product-item__image::after {
content: '';
position: absolute;
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
border: 2px solid white;
pointer-events: none;
}
This worked perfectly, thank you!
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024