kmalinow Posted December 11, 2007 Report Share Posted December 11, 2007 Hi,How can I disable printing both header and footer of webpageI mean programmaticaly manner on the page to be printed.Thanks for helpKrzysztof Link to comment Share on other sites More sharing options...
Ingolme Posted December 11, 2007 Report Share Posted December 11, 2007 Try putting this CSS (supposing you gave the header and footer the id attributes "header" and "footer"):<style type="text/css">@media print{#header { display: none; }#footer { display: none; }}</style> Link to comment Share on other sites More sharing options...
kmalinow Posted December 11, 2007 Author Report Share Posted December 11, 2007 Try putting this CSS (supposing you gave the header and footer the id attributes "header" and "footer"):<style type="text/css">@media print{#header { display: none; }#footer { display: none; }}</style>Saying 'header' and 'footer' I ment these one added by browser. Usually, full path to the webpage, page nuber etc.is it possible to turn it off in this way?Krzysztof Link to comment Share on other sites More sharing options...
Ingolme Posted December 11, 2007 Report Share Posted December 11, 2007 No, you can't take away the "Page 1 of 2" and the page URL from the printed page.(at least, not in my knowledge) Link to comment Share on other sites More sharing options...
justsomeguy Posted December 11, 2007 Report Share Posted December 11, 2007 There's some component you can use to do it in IE, but not with anything else. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now