Home > Net >  Weird grey border around an image inside a swiper slide
Weird grey border around an image inside a swiper slide

Time:11-11

I'm using vue swiper - enter image description here

I checked all the posible css configs and there is literally nothing - no border, outline, box-shadow, or anything like that. Has anyone encountered such an issue before, how is it possible to solve it?

CodePudding user response:

If you have a white background i would add to the parent or the img element white background. I see that you use taildwindcss then add bg-white.

update

if you remove the class w-full from then you dont will get the gray border if you dont have an image.

CodePudding user response:

I think your img element is too small. Try increasing its size

  • Related