property

grid-row — CSS reference

Shorthand for the row start and end placement properties. Controls the block-axis boundaries, which are horizontal lines in the usual horizontal writing mode. A span is a track count, not a line number.

Formal Syntax & Structure

css syntaxcss
<grid-line> [ / <grid-line> ]?

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>grid-row</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-row:1 / 3">A</div></div></body></html>
CSS Reference