Hiding certain data when printing

liunx

Guest
I have a page where there are some buttons to set parameters for the page. When printing I would like not to print those buttons. Is there something with '@media print' that I can use to hide this when printing?I believe (but have not tried it) that you could do:

CSS:

@media print {
.noprint {
display: none;
}
}

HTML:

<a href=http://www.webdeveloper.com/forum/archive/index.php/"somelink.html" class="noprint"><button img="button.gif"></a>I tried it with a <div class="noprint"> and it works. :cool:
Thanks.I tried it with a <div class="noprint"> and it works. :cool:
Thanks.
You're welcome. :)Please take note to check common reference sites first. "Going To Print," (<!-- m --><a class="postlink" href="http://www.alistapart.com/articles/goingtoprint/">http://www.alistapart.com/articles/goingtoprint/</a><!-- m -->) on A List Apart.
 
Back
Top