Click to See Complete Forum and Search --> : Disable Print Header and Footer


Lord57
03-12-2005, 11:27 PM
Hi All,

Does any body know a script that prevents or disable the page header and footer to be printed when you print an html page.

Thanks

Ultimater
03-12-2005, 11:36 PM
Try hi-lighting the text desired and press print.

Lord57
03-13-2005, 12:41 AM
Thanks for your reply.

However, it does not work.

artemis
03-13-2005, 06:00 AM
You can use css to get this effect, by hiding the header and footer containers.

Fang
03-13-2005, 06:20 AM
If you are talking about the browser options, header & footer, see this thread (http://www.webdeveloper.com/forum/showthread.php?s=&postid=323336&highlight=print#post323336)

Lord57
03-13-2005, 09:52 PM
Thank you very much 4 guiding me 2 this thread.

It seem's that there is no solution 4 it as soon as it is not controlable by the web developer.

Lord57
03-13-2005, 09:57 PM
Dear Artemis

Can U give me an example of the CSS that hides the header and footer content.

thanks

Fang
03-14-2005, 05:34 AM
@media print {
#header, #footer {
display:none;
}
}
This assumes you have elements with the id's header footer

BrainDonor
03-14-2005, 04:09 PM
I have used this with great success...only problem is that it's IE friendly only, which is fine for my needs here at work.

http://www.meadroid.com/scriptx/index.asp