concept

Grid cell — CSS reference

A cell is one row-track by one column-track region. It need not contain an item and is not itself a DOM element. Auto-placement typically puts an unpositioned single-span item in an available cell.

Formal Syntax & Structure

css syntaxcss
Intersection of a row and column

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Grid cell</title><style>body{margin:0}#g{display:grid;width:300px;grid-template-columns:100px 100px 100px;grid-template-rows:40px 40px;}#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>
CSS Reference