Back to index

Spacing

Fine-tune spacing with these utility classes. Padding is the space within an element and Margin sets the space around the element.

Example: <div class="p-3 bg-blue">This blue box has 48px spacing around its contents</div>

Text alignment

Example <div class="align-middle"><p>I'll be placed in the center of the container</p></div>

Example <div class="align-center"><p>I'll be centered</p></div>

Rounded boxes

Apply one of these classes to round the edges of a container

Form modifiers, applied to form-wrapper element

Show/hide

Combine these classes to show or hide elements based on the screen size

Example: to show an element only on desktop and tablet, use <div class="hide-on-mobile"><p>I appear only on large screens</p></div>

Example: to show an element only on mobile, use use <div class="hide-on-tablet hide-on-desktop"><p>I appear only on small screens</p></div>

This will be rarely needed, but there can be cases where a chart image is large and wide, so isn't legible on mobile. With these classes, you can add an alternative image for mobile devices.

Facebook logo icon Twitter logo icon linkedin logo icon Youtube logo icon