{"id":372551,"date":"2022-08-25T12:28:00","date_gmt":"2022-08-25T19:28:00","guid":{"rendered":"https:\/\/css-tricks.com\/?page_id=372551"},"modified":"2022-10-04T11:24:29","modified_gmt":"2022-10-04T18:24:29","slug":"grid-column-start","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/g\/grid-column-start\/","title":{"rendered":"grid-column-start"},"content":{"rendered":"\n

The grid-column-start<\/code> CSS property is part of the CSS Grid Layout specification<\/a>, used to indicate the column grid line where a grid item starts in a grid layout. This property \u2014 among other line-based placement grid properties \u2014 controls the size of a grid item and where it sits on the grid.<\/p>\n\n\n\n

.grid-container {\n  display: grid;\n  grid-template-columns: 1fr 1fr 1fr;\n}\n\n.grid-item:nth-child(2) {\n  grid-column-start: 3; \/* Item starts on the third column line *\/\n}<\/code><\/pre>\n\n\n\n

Based on CSS Grid\u2019s default auto-placement behavior, the second child element of the grid in this example should be placed in the second column. But we declared a grid-column-start<\/code> position on the third grid line, moving the grid item into the third column and aligning its starting edge with the third grid line.<\/p>\n\n\n\n\n\n\n\n

\"A
Shifting the second grid item into the third column using grid-column-start<\/code> CSS Grid property.<\/figcaption><\/figure>\n\n\n\n
\n \n

Table of contents<\/h3>\n <\/summary>\n \n