concept
Explicit grid — CSS reference
The explicit grid comes from the template definitions, including named areas that require tracks. The explicit grid supplies the reference edges for positive and negative line numbering. Items can extend the layout beyond it without redefining those edges.
Formal Syntax & Structure
css syntaxcss
grid-template-columns / grid-template-rows / grid-template-areasWorking Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Explicit grid</title><style>body{margin:0}#g{display:grid;grid-template-columns:80px 120px;grid-auto-columns:60px;grid-template-rows:40px;}#g>*{background:#146e73;color:white;box-sizing:border-box}#b{background:#345d8e}#c{background:#79518e}</style><body><div id="g"><div id="a" style="grid-column:3 / 4">A</div><div id="b" style="grid-column:1 / -1;grid-row:1">B</div></div></body></html>