Wiki source for Mod021fPrintableViewCSS


Show raw source

==== Wikka Mod 021: Printable View CSS ====
Type: Feature Addition
----
===Credit:===
**[[http://web.archive.org/web/20040603213440/http://www.wakkawiki.com/BeP | BeP]]**
[[http://web.archive.org/web/20040823065750/http://www.wakkawiki.com/PrintMethod | PrintMethod @ WakkaWiki]]
----

=== Printable View using CSS ===

- create a print.css in folder css.
- write in it:

##.header, .footer, .commentsheader, .copyright {
display:none;
}
.page {
border-bottom: 1px inset #000;
} ##

- Open actions/header.php
- insert ##<link rel="stylesheet" type="text/css" href="css/print.css" media="print" />##
- that's it ;-)
-- [[http://web.archive.org/web/20040603213440/http://www.wakkawiki.com/BeP | BeP]]

----
The CSS method by Bep is the way to go. To remove the page border, change the print.css file to this:
##
.header, .footer, .commentsheader, .copyright { display:none; }

.page {
background-color: #FFFFFF;
padding: none;
border: none;
}
##
-- JsnX

----
CategoryLayout
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki