There's a whole lot to love already about CSS in 2023, but here are just a couple more things I'd still find useful. Plus, a review of long-standing issues that actually have some support or are in-progress.
In more recent years, design systems and component libraries have gained popularity. There is also a desire to build once, deploy anywhere. Meaning a component developed in isolation is intended to work in any number of contexts to make building complex interfaces more efficient and consistent. CSS container queries have landed and are now available for experimentation. Let’s look at what problem is being solved, learn how container queries work, and see how they compare with and complement existing CSS features for layout.
There's a whole lot to love already about CSS in 2023, but here are just a couple more things I'd still find useful. Plus, a review of long-standing issues that actually have some support or are in-progress.
(Re-published from the Smashing Magazine newsletter.)
Some bookmarks from March 2021 until now
Update: August 30, 2022 Container queries are now supported in Chrome 105. This is a momentous occasion. Developers have been wanting container queries for years and now they have finally been implemented in a browser. Safari will soon follow in Safari 16. Firefox is working on implementation but has not shared when they think it […]
CSS container queries are a powerful new tool for our CSS layout toolbox. In this post we'll dive into the practicalities of building a layout with container queries.
Software engineer, artist and musician
The main idea of CSS Container Queries is to register an element as a “container” and apply styles to other elements when the container element meets certain conditions.
A repo with links to posts of things around container queries. - sturobson/Awesome-Container-Queries
Get ready for this incoming CSS feature that will allow developing components that respond to their container's width and other properties.
How to use the :global() style modifier to style components based on their container
Container queries are here! This game-changing CSS feature enables truly component-based responsive design.
The new CSS features transforming web design: container queries, cascade layers, subgrid, and modern layout tools.
To learn more about the behaviors of container query units, we'll explore three fluid typography techniques applied via a "mixin" using custom properties. These upgraded methods will produce truly responsive typography, regardless of context.