Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS grid-column-end property

CSS grid-column-end property

Example

Set "item1" to span 3 columns:

.item1

{

grid-column-end:

span

3

;

}

Try it »


Browser support

The numbers in the table indicate the first browser version that supports this property.

property
grid-column-end 57 16 52 10 44

Property definition and usage

The grid-column-end property defines how many columns a grid item spans, or which column it ends at.

Default value: auto
Inherited: no
Animatable: support. Read about animatable Try it
Version: CSS Grid Layout Module Level 1
JavaScript syntax: object.style.gridColumnEnd="5" Try it

Syntax

grid-column-end: auto|span n|column-line;

Value Description
* auto * Default value; the grid item spans one column.
span n Specifies the number of columns the grid item will span.
column-line Specifies which column the grid item starts displaying at.

Example

Set the grid item to end at the third column:

.item1

{

grid-column-end:

span

3

;

}

Try it »


Related Articles

CSS Tutorial: CSS Grid Layout

CSS Reference Manual: grid-column property

CSS Reference Manual: grid-column-start property

CSS Reference Manual: grid-row-start property

CSS Reference Manual: grid-row-end property