property
grid-template — CSS reference
Sets grid-template-rows, grid-template-columns and grid-template-areas together. Unspecified template components reset to their initial values. Does not reset the implicit-grid properties; use grid if those must also reset.
Formal Syntax & Structure
css syntaxcss
none | <grid-template-rows> / <grid-template-columns> | area-string formWorking Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>grid-template</title><style>body{margin:0}#g{display:grid;grid-template:35px 65px / 120px 180px;}#g>*{background:#146e73;color:white;box-sizing:border-box}#b{background:#345d8e}#c{background:#79518e}</style><body><div id="g"><div id="a">A</div><div id="b">B</div><div id="c">C</div></div></body></html>