3 ms·
Would be cooler if the whole system were more flexible: you simply define 2 anchor points (one on the target, another on the source, so center bottom would be b
by eviks 1y ago
Would be cooler if the whole system were more flexible: you simply define 2 anchor points (one on the target, another on the source, so center bottom would be bottom width 50% and top width 50%) instead of being limited to the 9 predefined areas
- jaffathecake 1y ago`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 https://developer.mozilla.org/en-US/docs/Web/CSS/anchor