I'm not familiar with how much html and css you are familiar with,
but here's what you can do.
Go ahead and put all of the material you want to include on the
printed page in the html page. You'll want to wrap the print material
with:
<div class="printmaterial">
</div>
Of course you can change the class, but remember what it is. You can
also put that code around different sections (so if you wanted a
header image and footer text, you can wrap that around both).
In the regular CSS file that shows the page for the browser, you'll
want to put:
.printmaterial {display: none}
This hides everything in the div "printmaterial" from the browser.
However, the printed page will include the print material, since it's
not hidden in the print style sheet.
You were right about CSS's inability to write text into the page
depending on the file, because CSS is supposed to be used only for
styling the text included in the html file or written by javascript.
Hope that helps!
-Chase
On Aug 16, 2005, at 2:31 PM, andrew.mcconnell(a)sungard.com wrote:
Hello,
I'm trying to determine the best approach to adding additional
images and
disclaimers to materials printed from my site. Ideally, I'd like to
modify skins/common/wikiprintable.css with this information.
Admittedly,
I know very little about the inner workings of stylesheets. I
glanced at
a few primers but there doesn't seem to be a way to add content
through a
stylesheet (maybe I'm wrong?).
In my perfect scenario, I would add an image above the page title
and a
few paragraphs of legalese (from Mysite:Disclaimer) as a footer on the
last page. I wouldn't want any of this content to appear when
users are
browsing pages.
Thanks in advance.
-Andrew
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l