|
Cookbook /
PrintingWithStyleSummary: How to create a style for printing
Version:
Prerequisites:
Status:
Maintainer:
Categories: Publishing, CSS
Printing webpages is often a pain; if you are lucky half the page gets on paper and you can print the entire page using the landscape mode. Colors either drink your cartridge or make the page unreadable. This problem is not specific for PmWiki. Many websites -including the ones created with PmWiki- have a special link to get a more printable version of the page. I discovered that quite a few people using the wikis I run do not use the print-link. They don’t see it, or don’t like the special print version (sorry Pm). Never the less, the print link is a extra bit of clutter on your webpage. The good thing is that with modern browsers the whole thing can be solved using style. This solution is not specific for pmwiki. Simple try it, add the following bit to the bottom of pmwiki.css @media print { Now load your page and from the File menu take the Print Preview (or whatever it is called in your language)
ExampleA working example is on http://www.brambring.nl , do the print preview to see the difference with style only. Contributors |