grid-column-end
Widely availableSince 201797% of users
Defines which vertical grid line a grid item should end at. You can specify a line number, a named line or use 'span' to say how many columns it should cover.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassicIt has worked everywhere since October 2017.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
auto- Inherited
- No
- Applies to
- grid items and boxes within a grid container
- Animation type
- discrete
Quick example
.item {
/* Tells the item to end at the 4th vertical line */
grid-column-end: 4;
}
.item-span {
/* Tells the item to end after spanning 2 columns */
grid-column-end: span 2;
}grid-column-end browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
57+
52+
10.1+
16+Mobile
57+Android
52+Android
10.3+iOS