How can I stop text from being show when I print it?

You can see the webpage I am working on here: http://www.peterforkes.com/Resume.html
I created a staylesheet called "print.css" and added the following lines to my Resume.html file:
<link href="_css/Resume.css" rel="stylesheet" type="text/css" media="screen" />
<link href="_css/Print.css" rel="stylesheet" type="text/css" media="print" />
In my Resume.html file I have a link that will print a PDF of my resumé.  However, if you print the resumé then I do not want the link to print the resumé to be shown.
In the print.css I created the following class:
.doNotPrint {
color: #FFF;
I applied the class to the 'offending' text, thus:
<p class="doNotPrint"><a href="PDFs/Peter A. Forkes - Resume.pdf">Resume.pdf</a></p>
however, it does not seem to have any effect.  I am assuming (since the background is white) that changing the text color to white should make it invisible.
If you can suggest either how to make my method work (or suggest a better method) that that should mean that I have finished everything I want to do with my webpage.
Thanks,
Peter

I am assuming (since the background is white) that changing the text color to white should make it invisible.
The problem with the CSS is that you've targeted the <p> tag with the rule, not the <a> tag so it has no effect. Normal text in that paragraph will print in white but links will display in #333 because of your rule on a:link and a:visited
Nevertheless, I would avoid those tricks in case you incur the displeasure of the search engines. They're widely used by spammers and are punished accordingly (even though I know we're talking about a print stylesheet and your intentions are honourable :-).
In your print stylesheet, change
.doNotPrint {
color: #FFF;
to
.doNotPrint {
display:none;

Similar Messages

  • How can I STOP Firefox from being a glutton with my virtual memory?

    How can I STOP Firefox from being a glutton with my virtual memory?

    Yes. But, I see from the THOUSANDS of responses here concerning Firefox memory issues that other people have had no more success than I have at trying to STOP Firefox's memory gluttony. The fact that Firefox runs fine (like the good old days) for a while after re-booting and registry cleaning shows that something is going on beyond the trivial/ineffective suggestions offered in the referenced links.
    Having to re-boot several times a day to get Firefox out of the molasses is such a pain, that it's no wonder people are going back to IE, or like me, reluctantly relying more and more on Google Chrome.

  • Although I'm connected to my WIFI network my computer keeps "looking for new networks" How can I stop it from doing so when I'm working at home and don't want another network?

    Although I'm connected to my Wi-Fi network my computer keeps "looking for new networks." How can I stop it from doing so when I'm working at home and don't want another network?

    You might want to update Safari to 3.12. I would empty the safari cache. (Safari>Empty Cache). Then quit Safari. System Preferences>Network>Show:Airport>TCP/IP. Insert the following into the DNS Servers box;
    208.67.222.222
    208.67.220.220
    then hit apply. Now launch Safari. You should also try powering down modem, router and Mac and power up in 2 minute sequence; modem, router, Mac.

  • How can I stop iPod from repeating songs when I want it to shuffle

    How can I stop iPod from repeating songs when I want it to shuffle

    never mind - all fixed!

  • How do I stop texts from being seen on multiple devices on the same iTunes account

    I just updated my iphone 4s to ios 6 and now my texts are being viewed on another iphone connected to the same itunes account. How do I stop this from happening??

    Go into Settings -> Messages -> Send & Receive on the devices that your would not like to get your text messages to.
    Then remove the email addresses that you would not like to be reached on, especially the one that is the same as your Apple ID.
    Just leave the phone number there, and then the text messages should only appear on your iPhone 4s.

  • HT201363 Well my used to be best friend used his email to make answers to my account since I never made one yet, how can I stop him from being connected to his email for my apple id account witch I can access from my email but can't download stuff anymore

    I just want to remove his email from apple id and change it to my other email so I can have my secuity answers for my Apple Id account. Plus it says
    Forgot your answers? Send reset security info email to S•••••@hotmail.com. That email is my used to be best friend's account.P.S I didn't set up security and answers at all, he's using my account so he can only downlaod stuff and I can't..! how can I also disconnect him from using my account from his 2nd gen Ipod Touch...?
    Message was edited by: Canadalover999

    Hi Canadalover999,
    Thanks for visiting Apple Support Communities.
    In this instance, you may want to contact Apple for help with your Apple ID:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Regards,
    Jeremy

  • How can I stop Foxfire from automatically loading when I turn on my computer that runs on Windows Vista?

    Foxfire automatically loads when I boot up my computer after all the other essential programs boot up. I'd like to know how to disable the start-up menu link that allows the program to load up when the computer first starts up because the Foxfire browser isn't needed when I first start the computer. Besides, when I first start my computer, it's inevitably not hooked to the internet and it's just a bit annoying to see foxfire load when it's not needed. Furthermore, it takes up precious memory in the RAM when it's running, thus slowing down my machine. Please, someone show me how to keep this program from booting when I start up my computer. By the way, my system is Windows Vista and Foxfire does not show up in the start-up folder. Only by going to the default program page and clicking on Foxfire does it show that Foxfire has a hidden default that makes it start when the computer starts. All I'm looking for is to not see it when I boot my computer.

    Thanks for pointing me to the link about the startup programs changes. I found the solution there. Foxfire was hiding in the hidden startup menu. Once I found it using msconfig, I was able to stop it from loading when I started my computer. Again, thanks for the help.

  • How can I stop it from automatically syncing when I plug my iPod in?

    Is there any way to stop iTunes from popping up and syncing my iPod when I plug it in? I have about 1000 songs that are misplaced and I do NOT want them all erased off of my iPod when I plug it in. Yet, all the ways that are explained mean that you have to plug your iPod into the computer and have iTunes open and sync it just so you can click the box telling it not to sync. ANY way around this? Please help.

    Open the iTunes preferences and turn that option off, or press the Shift and Control keys while connecting the iPod to your computer, releasing them once the iPod appears.
    (27722)

  • How can I stop iPhoto from automatically launching when iPads are connected to my MacBook Pro?

    We currently have 20 iPads (2 different models) and we are using Configurator. Everytime we connect our ipads (via two usbs from our sync and charge trolley) iPhoto launches. Why does this happen and how do I stop it?

    never mind - all fixed!

  • How can I stop Firefox from loading automatically when I startup my computer?

    A while ago I setup Windows so Outlook and Firefox opened automatically when I log on. Now I want to stop FF from opening automatically. I have gone into the Startup folder and removed the shortcut to FF several times but it keeps coming back. I changed the name of Mozilla Firefox in the Windows Programs Directory to xxMozilla Firefox and that didn't keep it from loading. If necessary, I will remove FF from my computer altogether but I would rather not do that.

    Aaarg! I tried Matt's suggestion of using msconfig, restarted my computer, and it seemed to solve the problem. Today when I turned on the computer it hung up before loading Windows. I had to use the F12 button to get it to load. I did and it did and Firefox did not load.
    Now, this evening, I turned on the computer, the startup procedure was normal, and there's Firefox fired up and ready to go!

  • How to avoid af:dialog from being showed when af:table is empty?

    Hi,
    Is there any way to disable af:dialog if table has no records? And re-enable when new records added..?
    And also additional question about af:dialog, How can I close the dialog after my custom button is pressed?
    Thanks

    Hi,
    Add partial Refresh to the button by setting partialTriggers property to table id. If it was already added and if you are using Jdev 11g, use visible property instead of rendered property.
    Sireesha

  • How can I stop email from being deleted on computer?

    I upgraded from a 3gs to a 4s today. Everything is working fine except my email. On my 3gs I had my email set up to never delete from the server that way I could delete the mail on my phone but not on my computer. With the new 4s I can't find the never delete from server option.  Can anyone help me?  It's a hotmail address that I'm using.
    Thanks in advance for your help!!!!!
    ~Lubs

    Look in Settings>Mail, Contacts, Calendars>tap your hotmail account>Look through the settings (usually under Advanced)

  • How can I stop conversations from being linked together in Mail? I don't like that feature.

    I don't like that conversations are linked together in mail. It always scares me that I sent something to someone who it wasn't intended for. Sometimes the conversations are relevant but most of the time one email has absolutely nothing to do with another email so I don't see why they are linked together. I have looked all through the mail preferences but I don't see any options to change it.
    Does anyone has the same thoughts and any solution?

    Yes this worked! Thank you! Also sometimes my mail completely disappears  and then it comes back but I'm not sure why it does that and sometimes the search feature works and sometimes it doesn't.

  • How do I stop text from changing colour when hovering over it?

    Hello, I have downloaded a template for Dream Weaver CS6 (Which is the version i am usig). When you hover over one of the boxes the top text changes colour to black instead of staying white... does any one know how i can make it so the text stays the same colour. I will post a print screen of it.
    Before clicking:
    View image: 1
    When hovering over it:
    http://postimg.org/image/wdsii9mab/
    I will post the code of the index page aswell: <!DOCTYPE html> <html lang="en"> <head> <title>Home</title> <meta ch - Pastebin.com
    Any help is appreciated. Thanks.

    Your unwanted pink hover color comes from style.css line 181 here
    .btn_{
        background: none repeat scroll 0 0 #cf3046;    border: medium none;
        border-radius: 3px;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
        color: #ffffff;
        font-family: "Open Sans",sans-serif;
        font-size: 12px;
        font-weight: bold;
        line-height: 15px;
        margin-top: 20px;
        padding: 7px 13px 8px;
        text-decoration: none;
        text-shadow: none;
        text-transform: uppercase;

  • How can I prevent songs from being duplicated when adding them to my iPod?

    One feature I really like about iTunes is that if you have a song on a playlist, iTunes will notify you if you are adding a duplicate song to that playlist. I am looking for the same help managing my iPod.
    For example if I have a playlist in iTunes called "AAA" and a corresponding playlist on my iPod called "AAA", my aim is to have the same content on each. If it is a playlist that I update/change on an ongoing basis on my iTunes, my issue is that I have to remember what songs I have updated or deleted off of this playlist in order to avoid duplicated songs when I have my iPod plugged in.
    I would like to just drag this "AAA" playlist from iTunes to my iPod and have just the new songs be added to the "AAA" playlist on my iPod.
    Hopefully there something I'm overlooking and therefore a way to constrict what is added to the iPod. If you know how to do this, please let me know because this would make iPod music management just as great as iTunes management.
    THANKS!

    I turned off "manually manage music and videos" years ago and sync my iPods by syncing "selected playlists". Any playlist changes I make on the Mac are automatically synced to the iPods when connected.
    Watch this video for suggestions: http://www.apple.com/itunes/how-to/#video-sync

Maybe you are looking for

  • How do I stop calendar inserting 'starts' and 'ends'

    I have recently bought a new laptop ( OS Yosemite version 10.10.2) and find the automatic entering of 'starts' and 'ends' times on my entries in calendar very irritating. How do I stop it doing this ? The previous version I used did not do this autom

  • Webservice Connection error in PI 7.1

    Dear all, I got the following error , when im tring to post the SOAP request. It is SOAP to RFC synchronous scenario . [ HTTP operation 'POST' could not be performed on URL'/XISOAPAdapter/MessageServlet? channel=:servicexxx:CCxxx' due to an error: A

  • Can you roll back updates?

    I've recently had a notification on my Xperia T to say it had a software update available. So I installed it today. It's perhaps a bit more modern but it's terribly annoying. For a start it deleted the android browser with all of my bookmarks, which

  • How to manually restart a service

    systemuiserver hung up on me recently and after forcing it to quick in activity monitor, I could not figure out how to restart the service. I'm new to mac from windows, where I would just go to where the services are listen and click restart. I did t

  • How to filter junk email

    Is there a way to filter the junk mail being delievred to my Blackberry?