{"id":372340,"date":"2022-08-08T10:14:38","date_gmt":"2022-08-08T17:14:38","guid":{"rendered":"https:\/\/css-tricks.com\/?page_id=372340"},"modified":"2022-08-12T06:14:16","modified_gmt":"2022-08-12T13:14:16","slug":"grid","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/g\/grid\/","title":{"rendered":"grid"},"content":{"rendered":"\n
The The above example sets As mentioned, the grid<\/code> CSS property is a shorthand that allows you to set all the implicit and the explicit grid properties in a single declaration.<\/p>\n\n\n\n
.grid-container {\n display: grid;\n grid: auto-flow dense \/ repeat(5, 150px);\n}<\/code><\/pre>\n\n\n\n\n\n\n\n
grid-template-columns<\/a><\/code> to
repeat(5, 150px)<\/code> and
grid-auto-flow<\/a><\/code> to
row dense<\/code> which creates a grid container that has five explicit columns and auto-repeated rows.<\/p>\n\n\n
Constituent properties<\/h3>\n\n\n
grid<\/code> property is a shorthand that combines multiple properties. This is the list of all its sub-properties:<\/p>\n\n\n\n \t\t\n