Skip to content

Inset

Utilities for positioning offsets.

ClassStyles
af-inset-0inset: 0
af-top-0top: 0
af-right-0right: 0
af-bottom-0bottom: 0
af-left-0left: 0
  • af-inset-0 (all edges)
  • af-top-0 / af-right-0 / af-bottom-0 / af-left-0 (individual edges)
Full overlay

Overlay

<div class="af-pos-relative af-border af-radius-md" style="height: 7rem;">
  <div class="af-pos-absolute af-inset-0 af-badge" style="display: grid; place-items: center;">
    Overlay
  </div>
</div>
Pin to corners
TL
TR
BL
BR
<div class="af-pos-relative af-border af-radius-md" style="height: 7rem;">
  <div class="af-pos-absolute af-top-0 af-left-0 af-badge">
    TL
  </div>
  <div class="af-pos-absolute af-top-0 af-right-0 af-badge">
    TR
  </div>
  <div class="af-pos-absolute af-bottom-0 af-left-0 af-badge">
    BL
  </div>
  <div class="af-pos-absolute af-bottom-0 af-right-0 af-badge">
    BR
  </div>
</div>