How to Display a URL After a Printed Link
Your web page contains information that your users may want to print. On a web page, link text may say something like "learn more." This is not very helpful in print. You can help your site users with a print style sheet rule that will show URLs for links on the printed page. Here is how.
Instructions
-
- 1
-
2
Rules in the print.css style sheet will only be used when printing the page.
-
- 3
-
4
The rule in Step 3 translates into English as "after any A element in the navbar print the content of the HREF attribute."
Tips & Warnings
You can make additional style rules regarding underlining, font, color and so on for the printed links, but the steps above are all that are needed to get the URL to appear in print following the link text.
Comments
-
spencd1011
Aug 31, 2008
Easy to understand this explaination, helped me out when I needed the url. -
spencd1011
Aug 31, 2008
Easy to understand this explaination, helped me out when I needed the url. -
DreamLiving
Aug 24, 2008
You write very clear and concise articles. Thanks for the tips. -
DreamLiving
Aug 24, 2008
You write very clear and concise articles. Thanks for the tips.