How can I remove the border around an image without a source?

What I could suggest is in case not having a src=”” remove it and you can

img {
    display: none;
}


img[src] {
   display: block;
 }

or if you know like the url contains some special word, like http you can do:

img[src*="http"] {
    display: block;
}

Leave a Comment