CSS Grid minmax() can’t handle responsive design by itself. The definition of minmax(min, max) is as the following: Defines a size range greater than or equal to min. In the video below, the dotted rectangle represents the additional space. When the viewport is bigger, the browser collapses the rectangle and distribute its width between the other grid items. When using auto-fill/fit, you might get the same result. The browser deals with that differently.

6m read timeFrom ishadeed.com
Post cover image
Table of contents
Introduction to CSS Grid minmax()CSS Grid minmax() ValidationA Simple GridUsing auto-fit or auto-fill keywordsUse Cases and ExamplesThe downside of using auto-fit irresponsiblyI wrote an ebook
4 Comments

Sort: