Constrained CSS grids without `max-width`
Publikováno: 21.4.2020
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 … Read article “Constrained CSS grids without `max-width`”
The post Constrained CSS grids without `max-width` appeared first on CSS-Tricks.
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 Article — Permalink
The post Constrained CSS grids without `max-width` appeared first on CSS-Tricks.