CSS Articles
- Auto-Switching a Website to Dark Mode You can easily tell your site to use darker colors when a visitor is using a dark theme by using CSS media queries.
- CSS Outlines What makes Outline different from Border.
- Mobile Web Layouts vs. the Viewport Mobile web browsers now use a larger virtual screen to provide an imitation desktop experience - even if you’ve provided a better one tailored for small screens.
- Pure CSS Buttons As part of a minor site optimizing kick, I replaced the validation labels with something smaller, less obtrusive, and directly on the page. I tried to duplicate the look of the classic antipixel-style buttons in CSS.
- Readable Email and Web Pages It’s 2024. If you’re still designing websites or email like you would design an 8.5x11" promotional hand-out on a sheet of paper, you really haven’t been paying attention to how people use the internet over the past decade.
- Web Font Downloaded Twice When Preloading Weirdly enough, you need to add a ‘crossorigin’ property even if the font file is on the same site.