CSS Reference
This page lists every CSS grid property, where you can set it in Builderius, and which values the grid builder reads. Use it when you write grid CSS by hand and want to know how the builder will show it.
The CSS grid builder is available in Builderius Website, Professional and Studio. It is not included in Builderius Community (Free).
How to read the tables: Sidebar is the Styles tab, Canvas is the canvas builder, and CSS only means you set it in the CSS editor or in Advanced styles. A value written in the CSS editor is always kept as written. The grid builder only rewrites a property when you change it.
The Grid
| Property | Sidebar | Canvas | Notes |
|---|---|---|---|
display: grid | Layout → Display → Grid | - | Shows the grid controls |
display: inline-grid | Display dialog | yes | Same grid controls and canvas builder as grid |
grid-template-columns | Columns cards | headers, − / + | See below |
grid-template-rows | Rows cards | headers, − / + | See below |
grid-template-areas | Grid Areas cards | draw, edit, delete | See below |
grid-auto-flow | Auto Flow | - | row, column, dense, row dense, column dense |
grid-auto-columns | Auto Columns | faint headers | Any value |
grid-auto-rows | Auto Rows | faint headers | Any value |
gap | Gap | cells follow it | One or two values |
row-gap, column-gap | CSS only | cells follow them | |
align-items | Align items in cells (vertical) | - | Stretch writes nothing |
justify-items | Align items in cells (horizontal) | - | Stretch writes nothing |
justify-content | Justify Content | - | |
align-content | Align Content | - | |
place-items, place-content | CSS only | - | Not shown in the sidebar |
grid, grid-template | CSS only | - | Shorthands are not read; use the longhands |
Grid Items
| Property | Sidebar | Canvas | Notes |
|---|---|---|---|
grid-column | Grid Child → Auto (span) or Manual (start / end) | move grip, span handle | |
grid-row | Grid Child → Auto (span) or Manual (start / end) | move grip, span handle | |
grid-area with a name | Grid Child → Area | - | |
grid-area with 2 to 4 lines | Grid Child → Manual | move grip | Rewritten as grid-column / grid-row when you edit it |
grid-column-start and the other longhands | CSS only | - | Not shown in the sidebar |
align-self | Grid Child → Align Self | - | |
justify-self | Grid Child → Justify Self | - | |
place-self | CSS only | - | |
order | Grid Child → Order | - |
grid-template-columns and grid-template-rows
Each value separated by a space at the top level is one track card. Spaces inside () and [] don't split.
| You write | Card | Canvas |
|---|---|---|
200px, 20rem, 25%, any unit | Value with unit | one header |
1fr | Value with unit | one header |
auto, min-content, max-content | Value | one header |
minmax(200px, 1fr) | Size: Min/Max | one header |
fit-content(300px), calc(…), clamp(…), min(…), max(…) | Value, kept as text | one header |
var(--size) | Value, kept as text | one header |
repeat(3, 1fr) | Repeat: 3 | three headers: one solid, two dashed |
repeat(2, 100px 1fr) | Tracks: 100px 1fr, Repeat 2 | four headers |
repeat(auto-fill, minmax(200px, 1fr)) | Repeat: auto-fill | as many headers as fit |
repeat(auto-fit, …) | Repeat: auto-fit | as many headers as fit |
repeat(var(--cols, 3), 1fr) | Repeat: typed | as many headers as the browser makes |
var(--grid-cols, 1fr 2fr) | one card, kept as text | as many headers as the browser makes |
[name] between tracks | Line name | - |
none, or nothing | no cards | first header reads none |
subgrid | one card, kept as text | not editable as tracks |
| An invalid value | cards, with "This is not valid CSS…" | as if nothing were written |
These values are all read and written back unchanged:
1fr 1fr 1fr
repeat(3, 1fr)
200px 1fr 2fr
repeat(2, 100px 1fr)
1fr repeat(2, 200px) 1fr
[full-start] minmax(1rem, 1fr) [content-start] minmax(0, 40rem) [content-end] minmax(1rem, 1fr) [full-end]
repeat(auto-fill, minmax(200px, 1fr))
repeat(auto-fit, minmax(min(100%, 250px), 1fr))
repeat(auto-fit, minmax(clamp(200px, 25vw, 320px), 1fr))
fit-content(300px) 1fr
min-content max-content auto
calc(100% / 3 - 1rem) calc(100% / 3 - 1rem) auto
repeat(var(--cols, 3), 1fr)
var(--grid-cols, 1fr 2fr)
subgrid
Line names. Several names on one line are written as one bracket: [content-start main-start]. Several brackets in a row, such as [a] [b] 1fr, are kept as written until you edit that line in the sidebar, which merges them into one.
Empty fields. An empty Value, Min or Max is written as auto.
grid-template-areas
- Rows in double or single quotes are both read.
., and any run of dots such as..., is an empty cell.- Only as many rows and columns as the areas reach are written.
- Overlapping areas are refused.
- An area that is not a rectangle is invalid CSS. When you save from the grid builder,
"a . a"becomes"a a a", and"a b a"is reported as an overlap. This is the one case where hand-written text is not kept. - Each area creates the line names
name-startandname-end.
grid-column, grid-row and grid-area
How Grid Child opens an item:
| You write | Mode |
|---|---|
nothing, auto, span 2 | Auto |
grid-column: 2 / 4, 1 / -1, content-start / content-end | Manual |
grid-area: main | Area |
grid-area: 2 / 1 / 4 / 3 | Manual, read as row start / column start / row end / column end |
- A
grid-areashorthand wins overgrid-columnandgrid-row, as it does in the browser. - Only
spanwith a number is read as a span. A named span,span main, is not shown in Auto.
Where Writes Go
- The selector in the selector input, at the breakpoint you are on, in the scope you are on. This is the same as the rest of the Styles tab.
- Canvas edits to the grid while an item is selected go into the grid's
%local%at the current breakpoint. - A single Collection item goes into
<selector>:nth-of-type(n), where<selector>is%local%or the class in the selector input.
Not Supported
- The
gridandgrid-templateshorthands. They work in the browser, but the sidebar doesn't read them. Use the longhands if you want to edit in the sidebar. place-items,place-content,place-self. No controls; use the separate properties.- Separate
row-gapandcolumn-gapcontrols. Usegapwith two values, or write them in the CSS editor. - Editing
subgridtracks.subgridis kept, but its tracks come from the parent grid and can't be edited here. masonry. Not supported.- Named spans (
span main) in Auto.
Known Issue
On the canvas, the span handle does nothing on an item placed with grid-area, either the line shorthand or a named area. Use Grid Child in the sidebar for these items.
Next steps: