#CSS3.

Articles tagged with #CSS3.

Responsive background images with srcset and sizes

A while ago I searched around for a quick and easy solution to provide responsive background images. Somewhere I stumbled upon a fiddle demonstrating an amazingly neat trick. I tried this approach in a few projects and started some cross browser testing. It worked like a charm and I'd like to share and explain this idea. srcset and sizes FTW! The srcset and sizes attributes, which the HTML5 standard specifies for the img tag, are around for a while now. […]

Read more