The Basics of Anchor Positioning

17 points by outervale


maxvij

Important to note that this isn’t yet supported in Firefox.

fleebee

Great work on the visualizations.

The first problem strikes as a bit odd to me though.

You might need to restructure the HTML, which is not ideal.

Why? If you want to render a node based on the position of another node, why not just make it that node’s child? With the way the author implemented it, you now have multiple elements that are visually clumped together but live in different areas of the DOM. That seems like an anti-pattern to me.