Mastodon Feed: Post

Mastodon Feed

isagalaev ("Ivan Sagalaev :flag_wbw:") wrote:

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.)