PDA

View Full Version : CSS & media types


Spookster
03-25-2003, 08:01 PM
I really just wanted to share this article I found on using CSS media types. I've always hated how you can design a layout that looks great on screen but looks horrible when printed or put up on a big screen projector. I never realized we could set up differerent styles and layouts so easily for each of those:

http://www.greytower.net/en/archive/articles/cssmedia.html

One question though....I wonder how the browser knows or detects which media type it is being displayed on.

brothercake
03-25-2003, 08:20 PM
Originally posted by Spookster
One question though....I wonder how the browser knows or detects which media type it is being displayed on.
afaik the media type is inherent in the medium, so a graphical desktop web browser is always "screen", just as the browser's print capabilities are only ever "print".

Except for Opera 7, which also supports projection :) I think that whenever you use a projection stylesheet, opera switches over to it when you go into fullscreen mode. Pretty nifty - no more PowerPoint ;)

Jerome
03-25-2003, 10:14 PM
When you want to print information from another file-type, this comes in handy:

<LINK REL=alternate MEDIA=print HREF="yourfile.doc">

Jerome