Position an element relatively to another element Chris Coyier on Jul 29, 2015 DigitalOcean provides cloud products for every stage of your journey. Get started with $200 in 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 →