Preventing a grid blowout

A handy post by Chris Coyier on how setting a minimum width of 0px or using my favourite new CSS thing, minmax(0, 1fr) can prevent unwieldy content such as a <pre> breaking your layout.

Of course, Chris being Chris, you learn a bunch about how this stuff is calculated, thanks to his excellent knack for explaining complex concepts in an easy to understand way.

https://css-tricks.com/preventing-a-grid-blowout/

Hi 👋
I’m Andy, a freelance web designer

I’m not currently booking new projects, but you can support my work by buying “Every Layout”.

Buy Every Layout