Take the MDN Survey and help us understand what browser vendors can do to make your life better: https://qsurvey.mozilla.com/s3/MDN-browser-compat-survey

You are on the editable version of MDN Web Docs

View as an MDN Web Docs user: https://developer.mozilla.org/en-US/docs/Glossary/Grid_Areas

Jump to:

A grid area is one or more grid cells that make up a rectangular area on the grid. Grid areas are created when you place an item using line-based placement or when defining areas using named grid areas.

Image showing a highlighted grid area

Grid areas must be rectangular in nature; it is not possible to create, for example, a T- or L-shaped grid area.

In the example below I have a grid container with two grid items. I have named these with the grid-area property and then laid them out on the grid using grid-template-areas. This creates two grid areas, one covering four grid cells, the other two.

.wrapper {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: 100px 100px;
    "a a b"
    "a a b";
.item1 {
  grid-area: a;
.item2 {
  grid-area: b;
<div class="wrapper">
   <div class="item1">Item</div>
   <div class="item2">Item</div>

Learn More

Property reference

Further reading

Document Tags and Contributors

Contributors to this page: mdnwebdocs-bot, rachelandrew, teoli
Last updated by: mdnwebdocs-bot,