Broken images are ugly, but we can style them to provide a better user experience.
Here's what we'll be creating today:
But before we begin let'...
For further actions, you may consider blocking this person and/or reporting abuse
@sasscrafter will doing this affect seo?
I don't think so, the HTML stays the same. You are just styling it :)
Hi, I don’t think so
You cannot use peusedo elements with img tag
Yep, but you can use them on broken images. So if images is fine pseudo elements won’t show up and if img is broken then they will be applied.
I'm sure I'm not the only person to try pseudo-elements with images only to find they're not supported! I had no idea that changed for broken images.
Sadly, no support in Safari for this though 😞
😔
Wow I weren't know that, thank you
Glad to help)
You can on broken images
You added two display properties in img style i am quite confused does that empty line you left mean anything or.....not, and plz tell something proper about why you added two display so i get it😐☺️
Hi, thanks for pointing. Just a typo. You can use either inline-block or block. 😊
Thanks man
😊
I like this idea! Always been a fan of just-in-case styles 🙌
Yep, same here :)
Very clever !
Thanks
Very nice 👌
Thanks
Good to know!
Yep
Great!
Thanks
Brilliant, thanks for sharing :)
No problem
Never though of that before! I have to try this out!!!
Definitely give it a try)
Wow, this is such a great idea!
;)
Nice, what I needed for my next project. THANKS
No problems mate 👌
Thanks
Thanks)