We have the following HTML:
The hyperlink on the second page targets the first page and shows the value of its "title" attribute as tooltip.
Unfortunately, the title attributes on our hyperlink elements are meaningless. That's why I want to revert to using the href attribute as a tooltip.
When I add the following CSS:
.. then the tooltip shows the correct text "#s1" - but the hyperlink is no longer functional (nothing happens when it is clicked)!
I also tried to add "prince-link: attr(href)", but without success.
<!DOCTYPE html>
<html>
<head>
<title>PDF Hyperlink Tooltips</title>
<style>
section { page-break-before:always; }
</style>
</head>
<body>
<section id="s1">
<h1>Header</h1>
</section>
<section id="s2">
<h1>Link to <a href="#s1" title="gugu">Section 1</a></h1>
</section>
</body>
</html>
The hyperlink on the second page targets the first page and shows the value of its "title" attribute as tooltip.
Unfortunately, the title attributes on our hyperlink elements are meaningless. That's why I want to revert to using the href attribute as a tooltip.
When I add the following CSS:
a { -prince-tooltip: attr(href); }
.. then the tooltip shows the correct text "#s1" - but the hyperlink is no longer functional (nothing happens when it is clicked)!
I also tried to add "prince-link: attr(href)", but without success.
- - -
Johann