Kevin Powell - CommunityKP-C
Kevin Powell - Communityβ€’3y agoβ€’
6 replies
cirilla

CSS grid, setting maximum span

Is there a way to set a max value for CSS grid-column: span such that it takes up n-columns maximum or spans across all available columns if there are fewer than that?

If I use span in a grid with auto-fill it'll forces additional columns even when there isn't space for any and makes them look weird.
Was this page helpful?