Click to See Complete Forum and Search --> : Print AND Screen Stylesheet?


tracknut
04-12-2009, 09:51 AM
Is there a way to set up your CSS so that a print stylesheet is applied on top of (ie, is a delta from) your screen stylesheet? As it is, I have to duplicate all screen styles into the print stylesheet, and then make changes to both, when my needs are pretty minimal to change for printing.

Thanks
Dave

Declan1991
04-12-2009, 12:17 PM
CSS, Cascading Style Sheets.
As long as the print style-sheet is declared AFTER the main style-sheet, and you don't specify screen as the media for the first, it will overwrite any rules you change, and inherit any rules you don't. Only specify "screen" for what you specifically don't want to be printed, or don't want to overwrite in the print.

tracknut
04-13-2009, 01:08 AM
Ah, thanks. I was specifying "screen"... will remove that.

Dave