0

I want to remove this border. This creating ugly appearance when images loading. Specially in big images.

enter image description here

img {
  width:50px;
  height:50px;
}
<img src="kansdkans" />
Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
doğukan
  • 23,073
  • 13
  • 57
  • 69
  • You're only getting that border because the image wasn't found? – Evan Knowles Jul 26 '19 at 11:06
  • There is no border around the image. The image not found image has a grey line as part of it. Don't link to URLs which aren't images. – Quentin Jul 26 '19 at 11:07
  • Yeah. that's the problem already. beacuse I'm using lazy loading. – doğukan Jul 26 '19 at 11:08
  • You can add a class to all the images that was not loaded yet and set `visibility:hidden;` to that class, and once the image is loaded, remove that class to make it visible – Alon Eitan Jul 26 '19 at 11:10

1 Answers1

1

Can you use alt element for remove that border.

<img src="kansdkans" alt="My Image Here" />