Skip to content

Container

Centered content wrapper with max-width and horizontal padding. Use one class per element.

ClassMax WidthUse Case
af-container90em (1440px)Default, standard page content
af-container-xs25rem (400px)Narrow forms, sidebars
af-container-sm40rem (640px)Narrow content
af-container-md48rem (768px)Tablet-optimized
af-container-lg64rem (1024px)Desktop content
af-container-xl80rem (1280px)Wide layouts
af-container-2xl96rem (1536px)Extra-wide layouts

Tip: Use one class only. af-container-xl is enough. Do not combine af-container af-container-xl.

For responsive sizing, use the responsive suffix: af-container af-container-lg@xl (default on mobile, large at xl breakpoint).

<div class="af-container">
  <!-- Content with max-width and centering -->
</div>
<div class="af-container-xs">Extra small (400px max)</div>
<div class="af-container-sm">Small (640px max)</div>
<div class="af-container-md">Medium (768px max)</div>
<div class="af-container-lg">Large (1024px max)</div>
<div class="af-container-xl">Extra large (1280px max)</div>