Results 1 to 3 of 3

Thread: Print AND Screen Stylesheet?

  1. #1
    Join Date
    Aug 2006

    Print AND Screen Stylesheet?

    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.


  2. #2
    Join Date
    Aug 2007
    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.
    Last edited by Declan1991; 04-12-2009 at 12:20 PM.
    Great wit and madness are near allied, and fine a line their bounds divide.

  3. #3
    Join Date
    Aug 2006
    Ah, thanks. I was specifying "screen"... will remove that.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles