Login
You're viewing the code4lib.social public feed.
  • Feb 10, 2026, 6:38 PM

    Some 20 years ago I wrote a series of blog post about laying out Web pages with #CSS. It was full of hacks, playing on side effects of properties and browser bugs. I haven't seriously worked with CSS for over 10 years, and now suddenly I need to make a simple page again.

    So imagine my wonder at discovering `width: fit-content`! I mean, it's so… obvious. And we just didn't have it back then.

    (Also, my warmest gratitude to everyone who made MDN possible. You're heroes.)

    💬 1🔄 1⭐ 4

Replies