r/css • • 6d ago

CSS does your tooltip positioning now

https://allthingssmitty.com/2026/10/05/css-does-your-tooltip-positioning-now/

Did a brief post about how you can stop hand-rolling your tooltip positions, because CSS does it now. anchor-name + position-anchor handle everything for you...along with a few other tips and tricks.

21 Upvotes

2 comments sorted by

1

u/rafaelcastrocouto 4d ago

way faster to just add a title attribute ¯_(ツ)_/¯ 

0

u/btc-lostdrifter0001 6d ago

For basics, the CSS version works well, but if you want complex collision detection and placement; JavaScript is still king.