HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Make "item1" span 3 columns
The grid-column-end
property defines how many columns an item will span, or
on which column-line the item will end (see example at the end of this page).
Default value: | auto |
---|---|
Inherited: | no |
Animatable: | yes. Read about animatable Try it |
Version: | CSS Grid Layout Module Level 1 |
JavaScript syntax: | object.style.gridColumnEnd="5" Try it |
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
grid-column-end | 57 | 16 | 52 | 10 | 44 |
Value | Description | Demo |
---|---|---|
auto | Default value. The item will span one column | Demo ❯ |
span n | Specifies the number of columns the item will span | Demo ❯ |
column-line | Specifies on which column to end the display of the item | Demo ❯ |
You can use column-line values instead numbers of columns to span:
.item1 {
grid-column-end: 3;
}
CSS tutorial: CSS Grid Layout