Cell management and layout
A position's content sits in cells. Open manage mode from the staff bar and open a position's editor, and its layout appears over the board: one cell to start with, or the cells you have already split. Every change stages in the position's draft — the board keeps showing the published layout until you publish, as Getting started describes.
Content and Layout mode
The Content | Layout switch in the position's header picks which controls the editor shows:
- Content (the default) is for the items. Each item has a toolbar at its top edge: move, edit, style, display rules and delete. Each cell has its add controls. An empty cell shows them by name: Create Banner and Batch Upload in a banner position, Add carousel beside the widget chooser in a widget position. A cell that holds items shows them as icons: in a banner position the plus icon (Create a banner in this cell.) and the upload icon (Upload several banners into this cell at once.), in a widget position the plus icon (Add a widget to this cell.) and the images icon (Add a widget carousel in this cell.).
- Layout is for the cells. Each cell has a toolbar at its top: the filter icon for its display rules and Visible (see Rule building), split, hide, order, delete and style. A cell that holds sub-cells has its controls in its bottom-right corner instead. Items show as a preview, each with its size chip.
When a cell is too small to fit its controls, the rest fold behind its … icon (More controls of this toolbar). Press it to open them. Press it again (it turns into a cross), press <kbd>Esc</kbd> or click elsewhere to close them.
The mode is remembered for each position until you close the browser tab. You can drag the border between two cells to resize them in both modes.
Ask the assistant
"Split this position into two columns" or "give the two cells equal widths" — the assistant makes the same changes these controls make. See The assistant.
The grid
The editor frames each cell with a dashed border. The position's name and its type — banner or widget — show at the top of the editor.


The same position on mobile:


Split a cell
- In Layout mode, press the split icon — a box split in two (Split this cell into two cells.) — in the cell's toolbar. The cell becomes a parent cell with two sub-cells in a row, and the item it held stays in the first one. If the cell had display rules, they stay on the parent cell and now govern both sub-cells; see Rule building.
- The parent cell's bottom-right corner now holds its controls: the direction icon, the add-cell icon and the arrange icon.
A position has a maximum nesting depth; a cell at that depth has no split icon.


Add a cell
Press the add-cell icon — a plus in a square (Add an empty cell inside this cell, after the last one.) — in the parent cell's bottom-right corner. An empty sub-cell joins after the last one. For the position's own row, the parent cell is the editor's outer frame.
A parent cell has a column limit; at the limit the add-cell icon is not offered.


Resize cells
- Drag the dashed border between two cells. Both cells show their share of the row while you drag.
- Drop the border. The widths are saved as percents of the row.
Only the side borders can be dragged: a cell is as tall as its content. To type an exact width, or a minimum and maximum, use the cell's Style.


Move an item between cells
- In Content mode, drag the item by the arrows icon in its toolbar (Drag to move this item).
- Drop it on the target cell.


Reorder cells
- To move one cell, use the arrow icons in its toolbar. In a row: the left arrow (Move this cell one place to the left.) and the right arrow (Move this cell one place to the right.). In a column: the up arrow (Move this cell one place up.) and the down arrow (Move this cell one place down.). Each press moves the cell one place. The arrow is greyed out when the cell is already at that end. A cell that holds sub-cells has its arrows in its bottom-right corner.
- To reverse the whole row, open Arrange cells on the parent cell and pick the reversed Direction. Cell order there moves the cells too, and lists them all at once.
The order you set applies to the device you are editing.


Cells within a cell
A split cell is a parent cell: it holds sub-cells, and the items live in the sub-cells. The direction icon in its bottom-right corner switches the sub-cells between a row and a column:
- While they sit in a row, it shows horizontal lines (Arrange the cells inside this cell in a column.).
- While they sit in a column, it shows vertical lines (Arrange the cells inside this cell in a row.).
Display rules set on a parent cell apply to everything inside it: when a parent cell is hidden by its rules, its sub-cells and their items are hidden too.


Arrange cells
Press the arrange icon — four squares (Arrange the cells inside this cell: direction, order and spacing.) — in a parent cell's bottom-right corner. The Arrange cells popover sets how the parent cell lays out its sub-cells:
| Setting | What it does |
|---|---|
| Direction | Row or column, in normal or reversed order. |
| Cell order | Moves one sub-cell earlier or later. |
| Alignment along, Alignment across | Where the sub-cells sit along and across the parent cell. |
| Wrap onto lines | Lets a row continue on a new line when it is full. |
| Gap (px) | The space between the sub-cells, in pixels. |
| Padding | The space between the parent cell's edge and its sub-cells, in pixels. |
A column offers only Alignment across; Alignment along and Wrap onto lines are for rows.
Clear arrangement returns everything except the direction and the padding to the default.
The arrangement is set per device, so tablet and mobile can arrange the same cells differently. See Design and mobile.


Cell style
In Layout mode, press the style icon — sliders (Style: spacing, width and size limits of this cell.) — in the cell's toolbar. The popover shows the settings that apply to that cell:
| Setting | What it does |
|---|---|
| Width | The cell's width in its row, as a percent or in pixels. Dragging the cell's border sets the same value. |
| Min width, Max width | The limits the cell's width stays within. |
| Grow | How much of the row's free space the cell takes. |
| Vertical placement | Top, middle, bottom or full height of the row. Empty, the cell follows the row's alignment. |
| Margins | The space outside the cell, per side, in pixels. auto gives that side the free space: it pushes the cell to the other side of a row, and auto on both sides centers a cell in a column. |
| Padding | The space between the cell's edge and its items. |
Which settings are offered depends on the cell:
- Width, Grow and Vertical placement are for cells in a row.
- A position's single cell has Padding only.
- A parent cell sets its size and margins here; its padding, alignment and gap are in Arrange cells.
A cell has no height setting: it is as tall as its content.
On tablet or mobile, a change applies to that device only. See Design and mobile.


Item size
- In Layout mode, press the item's size chip. It reads Auto until you set a width.
- Enter a width in percents, pixels or em. The item takes at most that much of its cell.
The item's width and the cell's width are separate settings.


Item style
In Content mode, press the brush icon (Style this item: size, spacing and alignment.) in the item's toolbar. The popover sets:
| Setting | What it does |
|---|---|
| Max width, Min width | The limits of the item's width. |
| Alignment | Left, center or right in the cell. |
| Padding, Margin | The space inside and outside the item, per side. |
| Background, Text | One of your style's colours each. Links keep the theme's link colour. |
| Border | Width, style (solid, dashed, dotted or double), colour and radius. |
| Shadow | None, Small, Medium or Large. |
- The colours come from your XenForo style, so the item follows the visitor's style, including its dark variation. Pick the struck-through swatch for no colour.
- On XenForo 2.3, a Light / Dark switch in the popover sets a second value for each colour, used when the visitor's style variation is dark (including "system"). Items without a dark value look the same in both. The switch is shown only when your current style has variations enabled; on XenForo 2.2, and on a style that turned them off, it is not shown.
- With both a Background and a Text colour, a widget's own panel becomes transparent so the text sits on the background you picked.
- An aligned item has no margin on the side it is aligned to; a centered item has no side margins.
- A side margin is limited to a quarter of the cell's width (half, when only one side has a margin), so the item always stays inside its cell.
- A shadow is drawn outside the item. If it is cut off, give the item a margin, or use a smaller shadow.
- On tablet or mobile, a change applies to that device and smaller ones. Use the inherited setting removes the device's own value.
Each change is one undo step in the position's draft.
Styling items with your own CSS
If your XenForo style has CSS of its own for Site Builder items, use this selector to reach an item:
.sbDeviceBlock > .gridContainer .sbItemFrame > .block { … }
An item with a max width also has the class sbItemFrame--sized.
Upgrading from before 1.0.59
A selector that picks an item as the direct child of a cell
(.gridContainer > .block) no longer matches. Use the selector above.
Custom CSS for a position
Each section of a position — its banners or its widgets — can have its own
Custom CSS. Open it with the code icon — </> (Custom CSS of this
position) — in the position's header. When the header is narrow, it moves
behind the … icon (More actions for this position) and reads
Custom CSS there. Writing
it needs XenForo's permission to manage styles; other administrators can read
it.
The CSS applies inside that section only. Use :scope to style the section's
outer cell:
/* the outer cell of this section */
:scope { gap: 12px; }
/* the items in this section only */
.sbItemFrame { border-radius: 6px; }
@media (max-width: 767px) {
:scope { gap: 4px; }
}
The CSS is saved in the draft like every other change: visitors see it once you publish, and Undo takes a save back.
CSS that could affect the rest of the page is refused, with the line it is on, and nothing is saved. Not allowed:
- at-rules other than
@media,@supportsand@container; - nested rules, and selectors starting with
+or~; url()with anhttp:address — usehttps:, a relative path or an image;var(),env(),attr()and other functions insideurl()and the image functions;<,expression()andjavascript:.
The assistant can write this CSS for you. CSS it writes can load images from your board only.