How to remove url and date text from web page print?

Go To


I'm using a Jquery to print the webpage (A div portion of it). It's working fine, But it also prints the Web Page Name, URL, Page Number and Date at page header and footer. How to remove these things from printable area?

2012-04-04 05:52
by Shreekumar S


Try the following css code snippet

<style type="text\css" media="print">
  #myFooter, #myHeader
    display: none;

This may also help you with your problem: Printing without header and footer

2012-04-04 06:06
by yves.beutler
And where to add this IDs 'myFooter' and 'myHeader - Shreekumar S 2012-04-04 08:16
I think these should be default tags and you don't need to set them manually. But I have to check this first. What happens when you print your page - yves.beutler 2012-04-04 08:27
You may need to format your webpage with css to overwrite the header and footer. I found this post, maybe you can set the content height and width to 100% - yves.beutler 2012-04-04 08:38
I'm still getting that Header and Foote - Shreekumar S 2012-04-04 09:45
Maybe you should try another way. If it's impossible to remove the header/footer, you can create a print friendly page like wikipedia does - yves.beutler 2012-04-04 09:55