IT lexicon › Web › Anchor positioning

Anchor positioning

Web På svenska → Updated: 2026-05-23

New CSS feature (2024) that lets an element be positioned relative to another — without JS.

Tooltips, dropdowns, popovers, context menus no longer need bespoke positioning JS. position-anchor: --my-btn + position-area: top. Chromium first; Safari/Firefox follow. Together with the popover API = native UI without a framework.

← Back to the lexicon