Skip to content

Spacing, Padding, Margins, and Units of Measurement

StudioExplanation2 min read13 views

Tagged

Studio gives you three ways to create breathing room (one element and two properties), plus a set of relative units that decide how every measurement behaves as screens change.

Spacer, Padding, or Margin?

  • The Spacer element is an empty block you drag from the Add panel and resize to push content up, down, left, or right. It occupies space on desktop and is removed on tablet and mobile, so it can’t cause excessive gaps on small screens.
  • Padding adds space inside an element, between its edge and its content. Set the top, bottom, left, and right values in the General section of the Properties panel.
  • Margins add space outside an element, moving it relative to its neighbors.

The rule of thumb: margins move the object, padding adds room inside it. Prefer padding and spacers when positioning content; margins can distort layouts on tablet and mobile.

Padding and margins are also available from the Indent icon on any element label, which opens the Indent Panel, the same tool as in Flow (see Spacing, Padding, and the Indent Panel, e-137).

Units of Measurement

  • px — fixed pixels: the same size for every user, on every screen.
  • em — relative to the font size of the containing element; raise the publication’s font size coefficient and 1em grows with it.
  • % — relative to the parent: a 50%-wide element is always half its column, whatever the column’s width. (Percentage heights need a parent with an explicit height.)
  • vw / vh — 1% of the viewport’s width or height.

When in doubt, percentages are the safest choice: they scale with the screen.