This article by Chris Ferdinand does a good job of explaining CSS container queries.
https://gomakethings.com/container-queries-are-rad-af/
How they work:
.container {
container-name: some-container;
}
inline-size: width changesize: height or width change.scroll-state: scroll changes.container {
container-name: some-container;
container-type: inline-size; /* ie, width */
}
@container some-container (width > 300px) {
.thing-inside-the-container {
padding: 1rem;
}
}
date: Thursday, February 5, 2026
time: 11:09 AM
tagged: #webdesign #dev #css #code
published: https://blakewatson.com/notes/951626b6