description & Usage
The grid property is a shorthand property for:
grid-template-rows
grid-template-columns
grid-template-areas
grid-auto-rows
grid-auto-columns
grid-auto-flow
Informations
# | Description |
---|---|
Default Value | none none none auto auto row |
Inherited | no |
Animatable | yes |
Version | CSS Grid Layout Module Level 1 |
JavaScript syntax | object.style.grid="250px / auto auto auto" |
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
grid |
Syntax
Values
Values | Description |
---|---|
none | Default |
initial | Adds this value to its default property. |
inherit | It inherits this value from its parent tag. |