[sclug] CSS
Chris Aitken
chris at ion-dreams.com
Thu Oct 20 10:24:56 UTC 2005
> 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.
Also, depending on how one writes the @import depends on which browsers will
cope well, or not at all. The above will work with all 4series browsers (inc
NN4.7). It might not be as pretty [1] as a modern browser [2], but the
result will be useable none the less. Of course - you have to ensure that
your divs are in the right order, as older browsers will render them in a
top down order.
Chris
[1] http://chimera.ion-dreams.com/i/svs_NN.jpg
[2] http://chimera.ion-dreams.com/i/svs_FF.jpg
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Sclug
mailing list