Skip to content

Styling Broken Images

Updated: at 08:10 PM

Use :before and :after pseudo-elements with an attr() expression to make broken images look snazzy

Broken images are ugly. But they don’t always have to be. We can use CSS to apply styles to the

element to provide a better experience than the default. Two Facts About The

Element To understand how we can style broken images, there

Read how at bitsofcode