* A website about making websites: css-tricks.com Most posts brought to you by @geoffgraham.me
I honestly hadn't thought about "getting caught" by light-dark() — particularly when leaning heavily on it for this site — but Martin Underhill explains the user and rendering considerations, making me reflect on my choices as well.
Where style queries shine is when the condition and the styles need to live in different places, or when one condition needs to affect several things at once: components that keep working, and adapt sensibly, no matter where they end up.
It’s important to use fallbacks to build a robust front end, either to quietly and discreetly avoid the error or to communicate it to our users.
A new resource resurrecting lost web-dev articles and posts: This is an archive of written articles about web development, web design, and web accessibility that once existed on the World Wide Web and which would otherwise be lost to time. Publications close, SEO strategies change, rights lapse, standards alter, content management systems are migrated between,...
Web designer, author, and Stuff & Nonsense founder Andy Clarke has released Standout Designs for the Web, a new e-book that encourages designers to move beyond familiar templates and conventional layouts to create more personality-driven websites. The book draws on Clarke’s thirty years of web design experience. It explores how storytelling, color, typography, imagery, and...
Firefox 162 (Nightly) trials random-item() and background-clip: border-area.
It’s been a… year, huh? I think the most common emoji I’ve seen this year is “Face with Bags Under Eyes” () and that says a lot. One thing is for sure: the industry we make a living in is in flux, regardless of the outcomes of the AI bubble. Let’s take a look at...
Chrome 158 ships :muted and all other media element pseudo-classes, making them Baseline.
Chrome 158 becomes the first to ship and the ::highlight(*) universal selector.
Imagine a CSS karaoke machine that displays a ball bouncing on text that incrementally highlights, based on progress through via speech recognition and running that kind of animation as a single predictable, holistic effect driven by one progress value.
Firefox 162 (Nightly) trials the headingoffset and headingreset attributes.
A big ol' roundup of Black Friday deals on front-end courses from the best independent publishers and educators in the business.
Too many websites look alike. They use familiar layouts, repeat the same patterns, and often leave little impression once you’ve moved on. Andy Clarke explores how understanding a company’s story can lead to more distinctive designs, using modular and compound grids to create layouts with character.
Is the technique inspired by the DRY principle by identifying and reducing (if not eliminating) CSS declaration repetition still a relevant optimization strategy?
Things look a little different around here? I hope so because we just pushed a site redesign! Here's everything new with the 20th(!!) version of CSS-Tricks.