grid-column-end
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.
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;
} Quick facts
Initial value
autoInherited
No
Applies to
grid items and boxes within a grid container
Animation type
discrete
grid-column-end Browser Support
Widely available Since 2017 95% global usage
This 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.
57+
52+
10.1+
16+