Elements
Divider element
A Divider element prints a horizontal line across the full width of the space it sits in — the page body, a section, a column or a grid cell. Use it to separate one part of the document from the next: the letterhead from the body, the line items from the totals, the terms from the signature.
In the hosted app, changing a template needs the editor role or higher. Local mode has a single user and no roles.
Divider or border?
A divider and a border both draw lines, but they do different jobs.
| Compare | Divider | Border |
|---|---|---|
| What it draws | One horizontal line, between elements | A frame on all four sides of one element |
| Where it is set | Its own element, which you can move, copy or hide | Border in the Box panel of a heading, paragraph, list or section |
| Extras | Colour, thickness, line style | Also padding, rounded corners and a background fill |
Use a divider for a rule between parts of the document — including a line under a heading, which a border cannot draw on one side only. Use a border to box something in, such as a callout or a summary panel. See Shared element properties for the Box panel.
Add one
- Open the Add block menu: press the + under the selected element or at the end of the document in Flow view, the + on the line that appears between two elements as you hover, or Add block at the top of the outline in the structure panel.
- Under Content, choose Divider. Typing "line" or "rule" in Search blocks… finds it too.
The new divider is a thin, light-grey, solid line. It goes where you pressed the +: just after the selected element (inside the same container), into the gap you hovered, or at the end of the document. The outline's Add block also puts it after the selected element, or at the end when nothing is selected. A divider can sit at the top level, inside a section, a column, a grid cell, a repeat or a conditional.
Properties
Select the divider, then open the properties panel with the Show properties panel button at the far right of the app bar, or press ⌘. (Ctrl+. on Windows).
Rule
- Color — the colour of the line. With no colour set, the field reads Default: light grey. Clear returns a chosen colour to the default.
- Thickness (pt) — the thickness in points (72 to the inch). Empty means the default thin line, one pixel thick. Any value above 0, up to 50, is accepted.
- Line style — Default (solid), Solid, Dashed, Dotted or Double. Double shows as two lines only when the line is thick enough: at 3 pt it does, but at the default thickness or at 2 pt it prints as a single line.
After the Rule section come Keep with next block — stay with what follows and the Conditional panel, which for a divider offers Show only when a condition is met but no conditional styling. A divider has no Style, Box or Spacing panels. See Shared element properties.
Spacing around a divider
A divider keeps a small fixed gap above and below it, about the height of a line of text, and has no spacing settings of its own. To open up more room, raise Space after (pt) on the element above it or Space before (pt) on the element below it, in that element's Spacing panel — headings, paragraphs, lists and sections have one. A gap smaller than the divider's own cannot be set this way.
How it prints
A divider that falls at the foot of a page can end up alone there, separated from what it introduces. Tick Keep with next block to hold it on the same page as the element after it. To print a divider only for some records — for example, only when there is a notes section below it — give it a condition (Show only when).
Good to know
- Inside a column or a grid cell, the line spans only that column or cell.