Retaining border radius on image zoom

Solved

Retaining border radius on image zoom

mariafy2
Shopify Partner
6 0 5

Hi, 

I used CSS to add a border-radius to my collection list sections, however, when I hover over them, there's an image zoom and the assigned border-radius disappears. I can't seem to find the correct class to assign the radius to so it stays in all states.

 

site: dragonsdenhawaii.myshopify.com

pw: dragon

 

Screenshot 2025-05-14 at 10.10.40 AM.png

Accepted Solution (1)

devcoders
Shopify Partner
1597 189 488

This is an accepted solution.

Hello @mariafy2 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.css and paste this at the bottom of the file:


.collection-item__image:hover{
    border-radius: 8px;
}

 

devcoders_0-1747277367958.png

 

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

View solution in original post

Replies 4 (4)
mariafy2
Shopify Partner
6 0 5

Yes, let me know what you need. You should be able to view the code by inspecting the element. I was just struggling to find the class to target.

Thanks for letting me know..

mariafy2
Shopify Partner
6 0 5

Here's the website & password:

 

site: dragonsdenhawaii.myshopify.com

pw: dragon

 

Unfortunately, I can't provide a collaborator code. Are you able to review by inspecting the site?

Dan-From-Ryviu
Shopify Partner
12019 2348 2528

Please use this code instead. 

.collection-item__bg { border-radius: 10px 10px 0px 0px !important; }

 

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

devcoders
Shopify Partner
1597 189 488

This is an accepted solution.

Hello @mariafy2 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.css and paste this at the bottom of the file:


.collection-item__image:hover{
    border-radius: 8px;
}

 

devcoders_0-1747277367958.png

 

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!