Typst Fumadocs

Padding

Documentation for the `pad` function.

Adds spacing around content.

The spacing can be specified for each side individually, or for all sides at once by specifying a positional argument.

Example

#set align(center)#pad(x: 16pt, image("typing.jpg"))_Typing speeds can be measured in words per minute._
Preview
#pad(
  left: relative,
  top: relative,
  right: relative,
  bottom: relative,
  x: relative,
  y: relative,
  rest: relative,
  body
) -> content

Parameters

Prop

Type

On this page