Print CSS Q...

Out of context: Reply #5

  • Started
  • Last post
  • 5 Responses
  • zr0

    The best way to do this (less server requests) is to have a @media block in your main css file, it also works a bit more intuitively.

    @media print {
    /* styles for print goes here */
    }

    Remember to include both media when linking the css.. like:
    <link rel="stylesheet" type="text/css" media="screen, print" href="print.css" />

    I find the quickest way to test print styles is to 'print preview'.

    • link example would not be print.css, would be a single stylesheet...zr

View thread