CSS grid-template-areas Property Reference

The CSS grid-template-areas property is a standard property in CSS Grid Layout. Review its formal syntax, computed behavior, and practical declarations.

CSS grid-template-areas Property Reference

The CSS grid-template-areas property is a standard property in CSS Grid Layout. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

grid-template-areas overview

The CSS grid-template-areas property is a standard property in CSS Grid Layout. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

grid-template-areas formal syntax
FieldValue
Formal syntaxnone | <string>+
Initial valuenone
Applies togridContainers
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupCSS Grid Layout
StatusStandard

Practical examples

These declarations demonstrate valid ways to set grid-template-areas. The initial and inherit global keywords remain available even when a property-specific value is preferable.

grid-template-areas live example
CSS .reset-example { grid-template-areas: initial; } .inherit-example { grid-template-areas: inherit; } @supports (grid-template-areas: initial) { .supported { grid-template-areas: initial; } }

Description

The CSS grid-template-areas property is a standard property in CSS Grid Layout. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: grid-template-areas
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies