Skip to content

Sizing

Utilities for sizing elements.

ClassStyles
af-w-fullwidth: 100%
af-h-fullheight: 100%
af-min-w-0min-width: 0
af-min-h-0min-height: 0
Full width
af-w-full
<div style="max-width: 18rem;">
  <div class="af-bg-primary-soft af-radius-sm af-w-full af-p-sm">af-w-full</div>
</div>
Full-width button
<button type="submit" class="af-btn af-w-full">Continue</button>

Prefix a sizing utility with a breakpoint suffix to apply it from that breakpoint and up:

<div class="af-w-full@md">
  <!-- ... -->
</div>

See Responsive Suffix for syntax and breakpoints.