Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

`position-anchor` is a high-level simple way of doing it, and it comes with the restrictions you mention. However, the `anchor()` function, which is also mentioned in the article, gives you the kind of flexibility you want.

https://developer.mozilla.org/en-US/docs/Web/CSS/anchor



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: