{"id":365866,"date":"2022-05-20T07:22:07","date_gmt":"2022-05-20T14:22:07","guid":{"rendered":"https:\/\/css-tricks.com\/?page_id=365866"},"modified":"2022-05-26T07:42:50","modified_gmt":"2022-05-26T14:42:50","slug":"grid-template-areas","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/g\/grid-template-areas\/","title":{"rendered":"grid-template-areas"},"content":{"rendered":"\n
The So, that example above? We get a two-by-two grid where the top row reserves two columns for an area named grid-template-areas<\/code> CSS property allows you to define and name the cells (or \u201careas\u201d) in a CSS grid container.<\/p>\n\n\n\n
.grid-container {\n display: grid;\n grid-template-areas: \"header header\" \"sidebar main\";\n}<\/code><\/pre>\n\n\n\n
header<\/code>. The bottom row also gets two columns, but reserves them for grid areas called
sidebar<\/code> and
main<\/code>, respectively.<\/p>\n\n\n\n\n\n\n\n