property

grid-column-start — CSS reference

Sets the start line of an item along the inline axis. Initial auto; not inherited. Positive integer lines count from the start edge of the explicit grid; negative integers count from the end. A span specifies a number of tracks rather than an absolute line. Zero is invalid.

Formal Syntax & Structure

css syntaxcss
<grid-line> (auto | integer/name forms | span forms)

Working Example

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