Skip to content

24 ways to impress your friends

Vote down?

Rudie Dirkx

I agree completely! Especially 2. and 3. Media queries in HTML? Come on!

‘My’ solution is still the best, but you try to get someone to listen:

<img src=“small.jpg” data-src-m=“medium.jpg” data-src-l=“large.jpg”>

@media (min-width: 900px) { img[data-src-l] { content: attr(data-src-l); }

You’d almost think it already works, it’s that sensible.