Skip to main content
CSS is fun and cool and I like it.
Article

A Web Component with Different HTML for Desktop and Mobile

Christian Schaefer has a great big write-up about dealing with web advertisements. The whole thing is interesting, first documenting all the challenges that ads present, and then presenting modern solutions to each of them.

One code snippet that caught my eye was a simple way to design a component that renders different HTML depending on the screen size.… Read article

Article

Content Jumping (and How To Avoid It)

Few things are as annoying on the web as having the page layout unexpectedly change or shift while you're trying to view or interact with it. Whether you're attempting to read an article as it wriggles around in front of you, or you try to click a link only to have another one push it out of the way and take you off to somewhere unexpected, it's always frustrating.

This layout shifting is especially frustrating on mobile devices, where a … Read article