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.

Things You'll Need

  • A text editor or WYSIWYG HTML editor
Show More

Instructions

    • 1
      Style Sheet Link

      Create a print style sheet and link it to your web page. The link will look something like the image.

    • 2

      Rules in the print.css style sheet will only be used when printing the page.

    • 3
      An Example Rule

      The CSS property to use is the :after pseudo element. Here's an example rule that would apply to the A (anchor) elements, or hyperlinks, in a div on a web page with the ID navbar.

    • 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.

Related Searches:

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.

You May Also Like

  • How to Print Web Pages with Firefox

    Mozilla's Firefox Web browser is one of the most popular existing browsers to be created, second only to Microsoft's Internet Explorer. The...

  • How to Copy & Paste a URL

    The copy and paste feature alleviates the need to type out entire web addresses, also called URLs. If you want to share...

  • How to Change the Name of a Hyperlink

    Embedding hyperlinks provides easy access to web pages and other sections of the document. Hyperlinks for specific web pages contain a specific...

  • How to Make Web Pages Printable

    While all web pages are considered "printable," some web designs are more printer friendly than others. For example, if you have a...

  • How to Do IP Printing

    If you need to perform a print job quickly, then you should utilize IP printing. The process of IP printing involves sending...

  • How to Style a Link with CSS

    This simple set of rules first makes all A element display in bold. It then goes through the individual link states to...

  • How to Change Your Name After Marriage

    Changing your last name after you get married is an old tradition that has been around for a long time. Whether the...

  • How to Find My Printer URL for Sharing

    Need to find your printer on a network? If you need to access a printer from a machine on your home or...

  • How to Hide the URL in Address Bars

    If you have found that your Internet browser toolbar has become cluttered with icons and other items, removing some of those items...

Related Ads

Featured