grid-column

W3C CSS Snapshot 2026

Choose where an item starts and ends along the columns. This shorthand sets grid-column-start and grid-column-end.

On this page

Syntax and values

Value or syntaxWhat it does
autoUses automatic placement or the default span for that edge.
1 / 3Starts at line 1 and ends at line 3, covering two tracks.
2 / -1Starts at line 2 and ends at the last line of the explicit grid.
1 / span 2Starts at line 1 and spans two tracks.
content-start / content-endUses named lines defined in the track list.

Try the example

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>grid-column example</title>
  <style>
.layout { display: grid; width: min(100%, 320px); border: 2px solid teal; box-sizing: border-box; }
.layout > div { padding: 8px 12px; background: #def5f5; color: #123; border: 1px solid #81b9b5; box-sizing: border-box; }
.layout { grid-template-columns: 1fr 1fr; grid-template-rows: 60px 60px; }
.layout .first { grid-column: 1 / 3; }
  </style>
</head>
<body>
<div class="layout">
  <div class="first">A</div>
  <div class="second">B</div>
  <div>C</div>
</div>
</body>
</html>

What to expect A spans both columns. B and C sit in the next row.

Official references