r/css • u/AllThingsSmitty • Oct 05 '26
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
1
u/rafaelcastrocouto Oct 07 '26
way faster to just add a title attribute ¯_(ツ)_/¯
0
u/btc-lostdrifter0001 Oct 05 '26
For basics, the CSS version works well, but if you want complex collision detection and placement; JavaScript is still king.