Forum Moderators: not2easy
@media print{
a:after{content:" ("attr(href)") "}
} text-docoration:none!important
The CSS :after pseudo-element matches a virtual last child of the selected element.
You are inserting content after the anchor tag, not into it.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style>
span { text-decoration:none }
</style>
</head>
<body>
<p><a href="#thisis the url">Testing <span>Text in a span</span></a></p>
</body>
</html>
*:after content is inserted after the contents of the element to which it is attached, not after the element itself. :before or :after exactly zero times. I know, I know ... it's been popular in various hacks (as has zoom: 1;) -- I have just never needed to actually employ those hacks ...
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style>
span { text-decoration:none }
</style>
</head>
<body>
<p><a href="#thisis the url">Testing <span>Text in a span</span></a></p>
</body>
a {text-decoration: none;}
span {text-decoration: underline;} I blame the reason for this on the fact that I have found use for/reason to use :before or :after exactly zero times.
.inukframe:before {padding-right: .5em; font-family: Pigiarniq, Uqammaq; content: "᐀";}
.inukframe:after {padding-left: .5em; font-family: Pigiarniq, Uqammaq; content: "᐀";} span.music:before, span.music:after,
body.blue span.music:before, body.blue span.music:after
{padding: 0 .1em; content: url("/paintings/refrats/music/bluenote.gif");}
body.grey span.music:before, body.grey span.music:after
{padding: 0 .1em; content: url("/paintings/refrats/music/greynote.gif");}