← The Log
Web dev

CSS anchor positioning lands in every browser

Tooltips, dropdowns, and popovers that stay glued to the button that triggered them used to require JavaScript libraries like Floating UI or Popper. That job now belongs to CSS. When Firefox enabled anchor positioning by default in early 2026, the feature reached support across Chrome, Safari, and Firefox, covering the large majority of browser traffic.

The approach is straightforward: you name an element as an anchor, tether another element to it, and let the browser handle placement and edge-flipping when it runs out of room. No positioning math, no extra scripts loading on every page.

For a business site, this is the boring kind of good news. Menus and tooltips built this way are lighter, load faster, and have fewer moving parts to break during a redesign or a plugin update. If your site is due for maintenance, it's worth asking whether some of its JavaScript can quietly retire.

Further reading: original source ↗

Want this handled for you?

This is exactly the kind of thing our website development work takes off your plate. Start with a free, no-pressure look at your site.

Come aboard
Get the Log by email

Plain-English notes on web, marketing, and getting found online. Occasional, no spam.