No more magic numbers with this modern CSS feature @KevinPowell
No more magic numbers with this modern CSS feature  @KevinPowell
Uploaded January 2026 | Updated September 2026, 2 weeks ago
Modern CSS is so great, and anchor positioning is one of my favorite new features. It's great for tooltips and popovers, but also for a lot of other things that used to be a lot more difficult, like positioning an element relative to a sibling or other ancestor that can't be it's containing block.

#css
No more magic numbers with this modern CSS feature4 color variations from 1 variable super easilyDont use spans or code for shortcuts and keystrokesAre we over-engineering with modern CSS?Style selected text using ::selectionGoodbye magic numbersMy best CSS tips from 2024A couple of great anchor positioning use casesWeve been using container queries wrongAI KILLS 75% OF JOBS AT TAILWINDlinear() is so goodScroll state queries are on the way! (and a bunch more)
Kevin Powell |

No more magic numbers with this modern CSS feature

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER