Skip to main content

Grid Areas

A grid area is a named rectangle of cells, such as header, sidebar or main. Once a grid has areas, an item can be placed in one by name instead of by line numbers. The grid builder writes the areas as grid-template-areas.

Paid Feature

The CSS grid builder is available in Builderius Website, Professional and Studio. It is not included in Builderius Community (Free).

Drawing an Area on the Canvas​

With the canvas builder on:

  1. Hover an empty cell. A + appears in its corner

    Screenshot showing the + button in the corner of an empty grid cell

  2. Click +. A one-cell area starts, with an Area: box for its name

  3. Type the name

  4. Drag the handle in the bottom-right corner across the cells the area should cover

    Screenshot showing a new area named header stretched across the first row

  5. Press Enter or click ✓. Esc cancels

Each area shows its name in its top-left corner:

Screenshot showing three areas on the canvas: header across the first row, sidebar in the first column below it, and main next to it

The grid above writes:

grid-template-areas: "header header header" "sidebar main main" "sidebar main main";

You can also start from the sidebar: New grid area under Grid Areas switches the canvas to drawing. Drag across the cells, name the area and press Enter.

Editing an Area on the Canvas​

Click an area's name to edit it:

Screenshot showing the main area being edited, with its name box, a delete button and handles in two corners

  • Rename it in the Area: box
  • Move its start with the handle in the top-left corner
  • Stretch its end with the handle in the bottom-right corner
  • Delete it with ✕
  • Save with Enter or ✓, cancel with Esc

To resize without opening it, hover the area and drag its bottom-right handle. The new size is saved straight away.

Grid Areas in the Sidebar​

Under Layout → Grid Areas, every area has a card. The card reads name, row start / column start / row end / column end, the same order as the CSS grid-area shorthand.

Screenshot showing the Grid Areas list with header, sidebar and main

Click a card to open it:

Screenshot showing the open card of the main area with Name, Column start, Column end, Row start and Row end

Name: The area's name.

Column start / Column end: The grid lines the area runs between, left to right. Lines are numbered from 1, so an area in the first column only runs from line 1 to line 2.

Row start / Row end: The same, top to bottom.

The bin on a closed card deletes the area.

Rules for Areas​

The grid builder only saves areas that are valid CSS. If a change would break that, nothing is written and a message says why.

  • Names start with a letter or _ and use letters, numbers, - and _. "Start with a letter; use letters, numbers, - and _ only."
  • Every name is used once. "… already exists."
  • Areas don't overlap. "main" overlaps "sidebar"
  • An end line comes after its start line. "An end line must come after its start line."
  • Areas are rectangles. That is a CSS rule: an L-shaped area is invalid CSS.

Cells outside every area are written as .. The grid builder writes only as many rows and columns as the areas reach. Every row in grid-template-areas is a real grid row, so writing empty rows below the last area would add rows to your grid.

The Lines an Area Creates​

Every area also names the lines around it: an area main creates the lines main-start and main-end, in both directions. In Grid Child → Manual, these names are offered in the start and end fields, so an item can start where main starts and run past it.

Placing Items in an Area​

Select an item in the grid, open Grid Child, choose Area and pick the area. See Grid Items → Area.

Next steps: