A gentle introduction to anchor positioning
August 25, 2025

Anchor positioning allows you to place an element on the page based on where another element is. It makes it easier to create responsive menus and tooltips with less code using only CSS. Here’s how it works.
Source: A gentle introduction to anchor positioning | WebKit
CSS provides a significant array of different ways of positioning content on a web page. Absolute, relative, static, fixed. Using Grid and Flex. And soon to be added to this anchor positioning.
Just as Grid and Flex replaced outdated hacky ways of doing page layout, I suspect in short order anchor positioning will replace a lot of the way we position dynamic content like tool tips and menu items and other things that appear interactively in our web content.