concept
Grid line — CSS reference
A line separates adjacent tracks or bounds the outer grid. A grid with three explicit columns has four column lines. Lines can be numbered or named; the negative index -1 refers to the last explicit line, not the end of later implicit tracks.
Formal Syntax & Structure
css syntaxcss
grid-column: 2 / 3Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Grid line</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" style="grid-column:2 / 3">A</div></div></body></html>