#containerQueries

Ana Tudor 🐯anatudor
2025-10-09

BTW, the CSS is heavily commented. And I've changed the images to something a bit more fitting for this time of year.

codepen.io/thebabydino/details

And now you can tell what gave me the idea for yesterday's challenge mastodon.social/@anatudor/1153

Screenshot from my CodePen demo showing the heavily commented CSS and the visual result using Halloween-related images.
Ana Tudor 🐯anatudor
2025-10-08

Because this got asked on reddit reddit.com/r/css/comments/1o06

Made a demo with various options for angled grid columns. Uses mathematical computations to ensure all fits just right all the time, regardless of viewport or number of columns.

On @codepen codepen.io/thebabydino/pen/Wbr

Enjoy!

Inautiloinautilo
2025-09-25
Ange Chierchianighcrawl
2025-09-08

css-tricks.com/setting-line-le

Je vois trop de sites qui laissent les paragraphes s’étirer façon spaghetti. Fix: max-width: 65ch, puis clamp() pour une taille qui bouge juste ce qu’il faut. 
Bonus nerd : unités de conteneur pour un rendu propre, composant par composant. 
chierchia.fr/2025/09/setting-l

Frontend Dogmafrontenddogma@mas.to
2025-08-25
Frontend Dogmafrontenddogma@mas.to
2025-05-14

Container Query for “Is There Enough Space Outside This Element?”, by @chriscoyier (@frontendmasters.com):

frontendmasters.com/blog/conta

#css #containerqueries

Frontend Dogmafrontenddogma@mas.to
2025-05-07

Using Container Query Units Relative to an Outer Container, by @anatudor (@frontendmasters.com):

frontendmasters.com/blog/using

#css #containerqueries #units

Ana Tudor 🐯anatudor
2025-02-22

I haven't used style queries much, but just gave them a spin and got an idea (that I've just tested & works) about how we can have ranges in style queries right now. 🥳

That is, red background if --k <= 20, orange background if 20 < --k <= 40 and so on...

Screenshot of a basic test for ranges n style queries.
Inautiloinautilo
2025-01-28


CSS container queries unleashed · Where container queries outperform media queries ilo.im/1621uq

_____

Inautiloinautilo
2025-01-24


Conditional CSS grid template areas · A magic formula to “open the gates to layout heaven.” ilo.im/161t0f

_____

Thomas Michael Semmlernachtfunke@indieweb.social
2024-12-19

Omg. I attempted to debug an issue in safari, where a position: fixed; element didn't correctly align to the viewports edge and I couldn't find out why, until I noticed that it is now relatively positioned to the next element with `container: inline-size;` on it.

Is this how it is supposed to be? This is only the case in safari

#safari #css #containerqueries #html #webdev

pablolarahpablolarah
2024-12-13

🪲 Solved By Modern CSS: Feature Image
by @shadeed9

Using container queries and CSS :has() to build a feature image.

ishadeed.com/article/modern-cs

Small green text on top:
Solved By Modern CSS.
Big red text on center:
Feature Image.
Background image: centered pink rectangle with insects in duotone pink white
Inautiloinautilo
2024-12-10


Solved by modern CSS: feature image · Feature image with container queries and :has() ilo.im/161bsv

_____
.

pablolarahpablolarah
2024-11-12

🧃 Opting in to CSS container queries for a existing design system

by Georgie Cooke
@heygeorgie

hey.georgie.nu/container-queri

Green text on pink background with a chalice on the side:
Opting in to CSS container queries for a existing design system
Inautiloinautilo
2024-11-08


Fluid everything else · “Responsive design should be almost invisible to the user.” ilo.im/160rfm

_____

Inautiloinautilo
2024-11-04


A friendly introduction to container queries · The CSS feature everyone asked for but few are using ilo.im/160peq

_____

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst