I am having an issue where when someone prints a page of my site, the printout also contains the content of the main nav menu. Obviously I do not want this to happen, I just want the page to print. An ideas on what has happened or how to fix it?
I am having an issue where when someone prints a page of my site, the printout also contains the content of the main nav menu. Obviously I do not want this to happen, I just want the page to print. An ideas on what has happened or how to fix it?
Perhaps the cleanest way would be to make a print.css file and use visibility:hidden; to omit the code you don't need displayed. This option could give you great flexibility. One of the ways to target the style sheet would be like this:
<link rel="alternate stylesheet" href="css/print.css" type="text/css" media="print" />
Another alternative could be to add the code below to the bottom of your themes style.css. Add the class of .noPrint to the desired div, or visa versa.
@media print {
.noPrint {
display:none;
}
}Thank you Gerroald, I will give those a try! I appreciate your response. Cheers, ~Guy
You must log in to post.