kmalinow Posted December 11, 2007 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 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 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 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 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
Archived
This topic is now archived and is closed to further replies.