
Originally Posted by
adh32
I've tried absolute positioning to place it below the link, which seems to be the only way to avoid bumping other content out of the way.
But Firefox splits the URL after every slash
Hmm, I don't get that in FF. If you want to position it absolutely, make sure to position the parent link relatively, like so:
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Experiment</title>
<style type="text/css" media="all">
.external {position: relative;}
.external:hover:after {
content: attr(href); padding: 2px 6px; font-size: 0.8em; border: 1px solid #6894ad; background: #fff; position: absolute; top: 12px; left: 0;}
</style>
</head>
<body>
<p><a class="external" href="http://mysite.com/">Link</a> This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph. This is a paragraph.</p>
</body>
</html>
Bookmarks