Home › CSS & Code
CSS & Code
Front-end technique: modern CSS you can actually ship.
- CSS & Code
Modern CSS in 2026: The Features You Can Finally Use Everywhere
By 2026, the stack of new CSS features that can be confidently relied on with progressive enhancement has grown rapidly, with container queries, :has(), native nesting, and more reaching widespread …
- CSS & Code
CSS Container Queries: A Practical Guide to Responsive Design
CSS container queries are revolutionizing the way developers approach responsive design. Rather than relying on media queries that adjust based on viewport size, container queries allow you to style …
- CSS & Code
How the :has CSS Selector Can Replace Common JavaScript Code Snippets
The :has() pseudo-class in CSS is a powerful relational selector, one that allows an element to be selected based on its descendants or adjacent siblings. This selector, now available, can eliminate …
- CSS & Code
Page Transitions With the View Transitions API
The View Transitions API lets browsers animate between the previous and next states of a page, enhancing the feel of a site with fluid movement. MPA and SPA sites act very differently, and this API …
- CSS & Code
CSS Grid vs Flexbox: A Decision Table That Ends the Argument
Between CSS Grid and Flexbox, the choice often comes down to the axis of the layout. Flexbox arranges items in a single direction, ideal for components in rows or columns, while Grid creates a …