Flex-grow 9999 Hack
This is an unintuitive—but very handy—use of of the flex-grow
property. The use-case outlined here is fairly common.
Er …I think Heydon might’ve cracked it. And by “it”, I mean container queries.
This is some seriously clever thinking involving CSS custom properties, calc
, and flexbox. The end result is a component that can respond to its container …and nary a media query in sight!
This is an unintuitive—but very handy—use of of the flex-grow
property. The use-case outlined here is fairly common.
Here’s another clever CSS technique. It uses flexbox to add horizontal lines either side of centred content.
The slides from Arelia’s flexbox talk.
Here’s a well put-together collection of common patterns that are now much easier thanks to flexbox.
Paul is digging deep into flexbox and finding it particularly useful for internationalisation …but there are still some gotchas.
Safari 18 supports `content-visibility: auto` …but there’s a very niche little bug in the implementation.
Improving performance with containment.
Defining the inputs instead of trying to control the outputs.
Variable fonts + CSS grid + service workers
How CSS grid is making my life easier.