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.
It is documented as part of the CSS Grid Layout specification.
Syntax
/* Usage 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;
}
/* Global values */
grid-column-end: inherit;
grid-column-end: initial;
grid-column-end: revert;
grid-column-end: revert-layer;
grid-column-end: unset;
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.
57+
52+
10.1+
16+