Gray border on images

Solved

Gray border on images

barnabé
Shopify Partner
4 0 1

Hi ! 

As many people, I have gray border outside of my images. I added a border radius on the CSS by using on every image this code : img {
border-radius: 20px;
}

And so gray lines appears around the image making the border radius useless.

I have seen many people in the same case but it seems that this code at the bottom of the base.css work for them but not for me... Any solutions ? Here is the css code i tried : 

.image-with-text__media.image-with-text__media--adapt.gradient.color-background-1.global-media-settings.media {
border: none;
}

Any help would be very appreciated !! 
Thanks. ECB106FE-AF51-437D-A48F-5098D1B2E017_1_105_c.jpeg0971BA47-0C8E-44F4-822E-8030EA078BCF_1_105_c.jpeg01AB7877-C948-47D0-A5D7-C9497282687A_1_105_c.jpeg

Accepted Solution (1)
Moeed
Shopify Partner
6969 1879 2296

This is an accepted solution.

Hey @barnabé 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.image-with-text__media--medium {
    border: unset !important;
}
</style>

RESULT:

Moeed_0-1729592806351.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 6 (6)

Moeed
Shopify Partner
6969 1879 2296

Hey @barnabé 

 

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


barnabé
Shopify Partner
4 0 1

Hey !

Here you go : https://equipe-5-next-u.myshopify.com/

Password : aiheon

 

Thanks ! 

Moeed
Shopify Partner
6969 1879 2296

This is an accepted solution.

Hey @barnabé 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.image-with-text__media--medium {
    border: unset !important;
}
</style>

RESULT:

Moeed_0-1729592806351.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


barnabé
Shopify Partner
4 0 1

Thank you so much, it works ! 

By any chance do you now how to apply it on product images ? Just like in the following picture ? 

Thanks ! 43104762-DEEC-4B85-82C3-8D97682FF810.png

Made4uo-Ribe
Shopify Partner
10036 2386 3012

Hi @barnabé 

Please, share your store URL. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
barnabé
Shopify Partner
4 0 1

Hey ! 

Here is the URL and password : https://equipe-5-next-u.myshopify.com/

aiheon