That's a really neat bit of tech! Here's a slightly fancier version that works for any text (not just links).
It also bypasses the default tooltip display, adds a bit more styling, and gets the tip content from another tiddler!
In a tiddler tagged with $:/tags/Stylesheet:
.customtip { position: relative; }
.customtip:hover::after {
content: attr(mytip);
position: absolute; top: 100%; left: 50%;
white-space:nowrap; color:black; background:ivory;
padding:0 1em; border:1px solid black; border-radius:0.5em;
}
Then, in a test tiddler:
text before
<span class="customtip" mytip={{myTipText}}> Hover over me </span>
text after
And, in a separate tiddler, put some custom tip content:
TiddlyWiki is magic!
Notes:
* Instead of using an "A" (link) element, I used a <span> with a classname of "customtip"
* The .customtip class doesn't need display:inline-block or margin-top:20px
* The CSS for ".customtip:hover::after" references a custom attribute name, "mytip"
* The test defines the customtip span with an attribute named "mytip" that transcludes content from the "myTipText" tiddler
enjoy,
-e