Kevin Powell

Heard from a few people recently that they'd like to be able to set a max column count when using grid with auto-fit or auto-fill. It would be handy if there was a feature that could do this, but it's possible now with a little bit of math, as I explore in this video. Once you have the code snippet, you can re-use it easily thanks to all the important numbers being custom properties (here's a codepen of it, if you don't want to bother with the video: codepen.io/kevinpowell/pen/GgRwqxJ)

4 weeks ago | [YT] | 117