Forum:Color links black when printing

What do I have to add to my css to get all links (especially external new links) to be black when I print them out? I tried: @media print { div#WikiaUserPagesHeader, div.WikiaUserPagesHeader, div.tabs-container, div#contentSub, div.commentslikes, footer.CorporateFooter { display: none; } div.plainlinks > table > tbody > tr > td > table > tr > td > a.external:link:new { color:   #000000 !important; } a.external {color:#000000 !important;}     /* unvisited link */ a.external:new {color:#000000 !important;}     /* unvisited link */ a.external:link {color:#000000 !important;}     /* unvisited link */ a.external:link:new {color:#000000 !important;}     /* unvisited link */ a.external:visited {color:#000000 !important;} /* visited link */ a.external:hover {color:#000000 !important;} /* mouse over link */ a.external:active {color:#000000 !important;} /* selected link */ a.text {color:#000000 !important;}     /* unvisited link */ a.text:link {color:#000000 !important;}     /* unvisited link */ a.text:visited {color:#000000 !important;} /* visited link */ a.text:hover {color:#000000 !important;} /* mouse over link */ a.text:active {color:#000000 !important;} /* selected link */ a.plainlinks {color:#000000 !important;}     /* unvisited link */ a.plainlinks:link {color:#000000 !important;}     /* unvisited link */ a.plainlinks:visited {color:#000000 !important;} /* visited link */ a.plainlinks:hover {color:#000000 !important;} /* mouse over link */ a.plainlinks:active {color:#000000 !important;} /* selected link */ } Granpa 19:42, May 6, 2011 (UTC)


 * Use . You can also ignore   and , as I don't think those translate to the printer. You don't need to have a new rule  for each class of link, and you can combine all of those into one set. So, basically:

 .tabs-container, .commentslikes, .CorporateFooter { display: none; } a, a:visited {color:#000 !important;}
 * 1) WikiaUserPagesHeader,
 * 1) contentSub,
 * That should work.


 * Thanks. I had to go back and remove all the !important's from my wikia.css anchor link colors. then it worked fine. Granpa 20:58, May 6, 2011 (UTC)