Position an element relatively to another element

Avatar of Chris Coyier
Chris Coyier on

DigitalOcean joining forces with CSS-Tricks! Special welcome offer: get $200 of free credit.

Not possible currently in CSS, but there is a discussion happening around syntax like:

.el {
  position: element(#target)

Of course there are tons of details, gotchas, and edge cases, but it sounds likely.

Direct Link →