[sclug] CSS

Dickon Hood sclug at splurge.fluff.org
Thu Oct 20 10:46:20 UTC 2005


On Thu, Oct 20, 2005 at 11:24:16 +0100, Chris Aitken wrote:
: > You seem to want CSS to allow you to create print result. The 
: > web is not a print medium. This is why CSS behaves the way it 
: > does. I recommend reading this: 
: > http://www.grauw.nl/articles/css-faq.php

: Yes and no. You can create a print style sheet, which most browsers will use
: when orinting, or print previewing.
: Setting the following (or similar) in the head will allow the use of the
: print stylesheet.

: 	<link rel="stylesheet" type="text/css" media="print"
: href="a/c/print.css" />
: 	<style type="text/css" media="screen">
: 		@import url(a/c/new_css.css);
: 	</style>

: This way you can set a stylesheet X pixels wide etc to fit onto the width of
: the required paper. A good web designer will take all this into
: consideration. 

For bonus points, get this added automatically by Apache's SSI includes
for any URL starting '/print/' by using mod_include and mod_rewrite (eg.
<http://www.bbc.co.uk/radio4/> cf. <http://www.bbc.co.uk/print/radio4/>).

-- 
Dickon Hood

Due to digital rights management, my .sig is temporarily unavailable.
Normal service will be resumed as soon as possible.  We apologise for the
inconvenience in the meantime.


More information about the Sclug mailing list