Skip to main content

fit-to-width

Fit content to specified width.

Example: #utils.fit-to-width(100%)[BIG]

Parameters

grow : bool    default: true

Indicates whether the content should be scaled up if it is smaller than the available width. Default is true.

shrink : bool    default: true

Indicates whether the content should be scaled down if it is larger than the available width. Default is true.

width : length | fraction | relative

The width to fit the content to.

body : content

The content to fit.

Returns: content