Center

Places the targeted element in the horizontal center. It takes the entire available horizontal space, until it hits its set max-width set through the --threshold-{z} class utilities.

Implementation

<div class="center --threshold-{z}">
  ...
</div>

API

Custom propertyDefaultDescription
--layout-threshold100%Sets the max-width of the targeted element

Utility classes

Class nameRequired?Description
--threshold-{z}RequiredControls the --layout-threshold API