The problem here is how you use CSS and display attributes, not columns.
Generally speaking, if you want to use position:absolute; as a way to move something in a row relative to your parent, you need to do a parent position:relative; To give an absolute positioned element a link to calculate its position from, w3schools CSS Positioning Link
So, in your case with a span inside the anchor, you want the anchor to be positional: relative; and the range that should be position: absolute; so that the coordinates of the range refer to the anchor tag (top or bottom and left or right attributes).
One last “gotcha” is the anchors that were wrapped. On my screen, your long anchor text sometimes ended in lines. So the question now depends on your specific use case. You can add white-space: nowrap; CSS binding to prevent wrapping, or happily position your tooltip on the whole anchor anchor. This is just a preference for your application.
So my solution to your problem is the following CSS:
div { position: relative; margin: 0 0 20px 0; } div.cols { -moz-column-count:2;-moz-column-gap:20px;-webkit-column-count:2;-webkit-column-gap:20px;column-count:2;column-gap:20px; } a { position: relative;
Now you can set the top / right attributes for the range or replace them with the bottom / left or whatever you need to get it in the right place. In addition, for this example, we used very simple CSS with the names of raw tags, I would recommend creating a link class for these special anchors so that it does not extend to the entire page arbitrarily. Something like a.MyHoverLinkClass { ... } .
If you feel that I missed something from your problem, please leave a comment to clarify your problem further so that I can solve it.
UPDATE: If you use columns in Firefox, this implies paragraphs around the text. But Chrome and Safari need to add <p></p> to their columns for this example to work! That's why some developers said that my example worked, while others said no. I fixed the markup in my jsfiddle to include <p></p> tags, as it should have been from the start! But do not forget to add them to your work!