> All in One 586: Constrained CSS grids without `max-width`

Ads

Tuesday, April 21, 2020

Constrained CSS grids without `max-width`

Ain’t nothing wrong with max-width, but Ethan makes a point in the last sentence:

Rather than simply defaulting to max-width as a constraint, I can use the empty space around my design, and treat it as a layout tool.

If the space “around” your grid is actually part of the grid, it’s easier to use. Maybe you’d decide to scootch some author information up there after all, or show an ad, or who knows what. It will be more robust if you do it within the established grid.

Direct Link to ArticlePermalink

The post Constrained CSS grids without `max-width` appeared first on CSS-Tricks.



from CSS-Tricks https://ift.tt/3bf44FU
via IFTTT

No comments:

Post a Comment

Ice Early today!

With a high of F and a low of 26F. Currently, it's 35F and Partly Cloudy outside. Current wind speeds: 12 from the Northwest Polle...