{% extends 'base.html' %} {# utilities/position — faithful port of src/html/utilities/position.html. Same DOM/classes/ARIA, same demo copy and Alpine helpers (including the x-teleport toast). Reference hrefs converted to clean Django routes. #} {% block main %}
Relative, absolute, sticky & fixed — composed with role tokens so overlays read in light and dark alike.
A relatively-positioned parent anchors badges, ribbons & status dots.
A media frame with a centered play affordance and a top ribbon.
Scroll this list — each group label pins to the top of its scroll box.
Pinned to the viewport, above all content. Trigger the live examples.
Fixed elements ignore scroll and sit relative to the viewport — used for toasts, FABs and the mobile sidebar overlay.
absolute, fixed in production.
Overlapping layers prove the painting order — later siblings with higher z sit on top.