Example

A simple grid-template property example:

Laboratory

description & Usage

The grid-template property is a shorthand property for:

  • grid-template-rows
  • Grid-Pattern-Columns
  • grid-pattern-areas

 

 

 

 

 

Informations

# Description
Default Value none none none
Inherited no
Animatable yes
Version CSS Grid Layout Module Level 1
JavaScript syntax object.style.gridTemplate="250px / auto auto"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
grid-template

Syntax

Values

Values Description
none Defaul
grid-template rows / grid-template-columns Determines the size of columns and rows.
grid-template-areas Determines the network design with the productivity of the named items.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.