I have generated a report...in a php page...
The report has to be printed in landscape mode
each time i have to set in into page setup
.and have to remove header and footers...
Please tell me the css code to do that
There are few steps to print only content on pages
Is your page have dynamic and static contents, well whats type of that contents follow these 2 simple steps
1. create a page without header and footer
That is because when we use print command in webpage whole page with header and footer will print, this is more simple to create a PHP page without any header and footer, only inner contents.
2. use this code to print that page
Problem is to print a web page without any header and footer, 'print()' code will print web page as it is looks on the screen. That's why we have to create a new page without header and footer so that these two things didn't show in that page and can get print only contents of that page