I want to print only selected sections of an (html) document. can I define several print classes. What would be the command for printing just one section be.
Yes, it is possible to print only certain sections of a document. You can have a print-only style sheet, which excudes elements that you do not want to print (or rather, includes elements that you do want to print).
There have been many requests like this, so I'd start by searching this forum, as well as reading through the FAQ and posts.
There is no "command" to print just one section, as such. The browser will print whatever you have told it to print in your print CSS.
Hope this helps,
Dan
[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
What I meant was that if there are several sections in a document would it be possible to print different sections - <divs> - according to which command or link was pressed.
(table layout! gasp!)
You may have to go in past the first page.
There is a "print" button at the bottom of each article etc. This prints only the content of a particular div (i.e. the article). From memory it sticks the content of said div into a different window and opens the browser's print dialogue box.
Nowadays to do the same thing I would use CSS. But you may find that you can adapt the script so you can have multiple buttons on a page to print different bits.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.