Grid Column Placement Property

Last updated: 2026-09-13

grid-column Grid Column Placement Property

grid-column is the shorthand for grid-column-start and grid-column-end. It positions a grid item along the horizontal direction. By specifying the start and end grid-line numbers, you control how many columns the item spans. It is a key property for building flexible grid layouts.

Category
Initial Valueauto
InheritedNo
Applies To
Animation Type
CSS VersionCSS3
StatusStandard

📝 Syntax

grid-column: <grid-line> [ / <grid-line> ]?;

⚙️ Values

ValueTypeDescription
<grid-line> / <grid-line>ValueGrid column placement

▶ Example

Edit the code below and see the live result in the playground:

🌐 Browser Support

Browser ChromeChrome EdgeEdge FirefoxFirefox SafariSafari OperaOpera
grid-column v57 v16 v52 v10.1 v44
Supported in all major browsers
Tip: The span keyword specifies the number of tracks to cover: grid-column: span 2 spans two columns.
Tip: Grid lines are numbered from 1, with line 1 at the far left. Negative numbers count from the right, and -1 is the rightmost line.

❓ FAQ

QWhat is the difference between grid-column: 1 / 3 and 1 / span 2?
AIn most cases they produce the same result: 1 / 3 means from line 1 to line 3, while span 2 means starting at line 1 and covering two tracks. The difference shows when the grid structure changes: span counts tracks, so it stays robust, while a hard-coded end line can misalign when columns are added. Prefer span when the number of tracks to cover is known.
QCan grid items overlap?
AYes. Several grid items can be placed into the same grid area and overlap, with z-index controlling which one sits on top. This is the basis for magazine-style layouts, stacked labels and other layered effects. By default the auto-placement algorithm never overlaps items; overlap only happens when at least one item is explicitly positioned with the same grid lines, so treat it as an intentional feature. But overlapping hides content and blocks clicks, so verify that the content stays accessible and avoid accidental overlap in ordinary layouts.
QHow do I read grid-column: span 2 with only one value?
AWith a single value, the unspecified line defaults to auto and the browser’s auto-placement algorithm finds a position for the item, which then spans the given number of tracks. grid-column: span 2 means “place at the next available position and span two columns”, while grid-column: 1 / span 2 explicitly starts at line 1. The span form stays stable when the grid lines are renumbered.

📚 Related Tutorials

Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏