Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exclued the link "Print this page" when printing

Status
Not open for further replies.

SkiCheif

Technical User
Sep 8, 2004
30
US
Is it possible to exclude just the link on the page. I just think that it would look more professional

Here is code for the link:

Code:
    <td align="right" valign="top"><font color="#0000FF" size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="javascript:printWindow()">Print 
      This Page</a></font></td>

Thanks
Keith
 

Yes - using CSS this would be fairly straightforward.

The HTML and CSS forum gets this question asked with great regularity, so a quick search of the threads, or check of the FAQ section of that forum would be all you'll need.

Hope this helps,
Dan
 
I love this feature of the style tag (The media attribute)...

I actually have the entire header of my site with the style exclude so that it doesn't print out.

Code:
  <style type="text/css" [b]media="print"[/b]>
    .exclude {
      visibility: hidden;
      display: none;
    }
  </style>

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Thanks, I did get it to work that way! I appreciate your help.
Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top