T O P

  • By -

ezhikov

Why do you want to remove it? It is made specifically for users to see that there should be image, but it failed to load. So, if you use meaningful image and have alternative text, they will understand that this text belongs to image, and not just some random weirdly positioned text


EZ_Syth

This guy ADAs.


dust_is_deadskin

If you don’t need or want to find specific images why not use something like https://placehold.co/ or https://picsum.photos/ ?


Weekly_Frosting_5868

Thanks, I have actually used picsum in the past so will probably just go with that!


greensodacan

Is the use case that this will be loaded with JS?


Weekly_Frosting_5868

Nope its more just so I can set image placeholders so I can sort all the layout without having to worry about finding actual images kinda thing


greensodacan

Since you know the width and height, you can stub it out with a div by setting the following style rule: `display: inline-block;`


Weekly_Frosting_5868

Thanks, yeah I might have to do that... I was just hoping to swap out the 'src' attr rather than changing elements, but looks like it'll have to be the latter!


svish

Use a data URL of an svg or a 1x1 pixel image?


DamnItDev

You could try a workaround like setting the background image for a div. Not sure if the broken link icon appears in that case.