OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
@Page and Media
This page's ID:
10742
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I think the easiest way is having two seperate files which contain the style sheets: One for the screen and one for printing. Add these two lines between the <head> and </head> tags of your main HTML document to load the two files: <link rel="stylesheet" type="text/css" href="styles.css" media="all" /> <link rel="stylesheet" type="text/css" href="printer-styles.css" [b]media="print"[/b] /> Note that because you set media to all in the first line, all the normal styles from the first file appear on the printer, too, unless you overwrite them in the second one. So if you only wanted different margins for the printer, the only line in printer-styles.css would be "body { margin: whatever; }". Read the CSS tutorials over at the GurusNetwork to get answers to all your other questions: [url=http://www.gurusnetwork.com/tutorials/coding.html]http://www.gurusnetwork.com/tutorials/coding.html[/url] And: Have a look at our new [url=http://faq.ozoneasylum.com]FAQ[/url]! Hope that helps a bit, [url=http://faq.ozoneasylum.com/FaqWiki/shownode.php?id=282]kuckus (cell #282)[/url] [This message has been edited by kuckus (edited 05-23-2002).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »