/    Sign up×
Community /Pin to ProfileBookmark

Print CSS: Insert link URL after <a> tag

I heard there was a way, using the :after psuedo-class, to insert the URL of a link tag after the tag in CSS. I ran into it here a while back, but can’t find it.

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@Paul_JrSep 14.2004 — Like so?
<i>
</i>a:hover:after {
content: ' ' attr(href);
}
Copy linkTweet thisAlerts:
@ray326Sep 14.2004 — There's an old article on ALA about that.
Copy linkTweet thisAlerts:
@toicontienauthorSep 14.2004 — Thanks guys. I looked at ALA for a while and couldn't find it. I'll give it a whirl.
Copy linkTweet thisAlerts:
@pawkySep 14.2004 — are you talking about when u go to print the page? if so it is listed here:

http://www.alistapart.com/articles/goingtoprint/

its in the middle under Printed Links. Hope this is what your looking for ?
Copy linkTweet thisAlerts:
@toicontienauthorSep 14.2004 — [i]Originally posted by pawky [/i]

[B]are you talking about when u go to print the page? if so it is listed here:



http://www.alistapart.com/articles/goingtoprint/



its in the middle under Printed Links. Hope this is what your looking for ? [/B]
[/QUOTE]

Ah yes. That was it. Thanks.
×

Success!

Help @toicontien spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...