Paradox designs library
Print stylesheet

Print stylesheets are a vital, and often overlooked part of the web. Print stylesheets let you control how your website looks when it is printed.

Contents

Basic Usage

There are a number of ways to define a print stylesheet.

Stand-alone

To define a stand-alone stylesheet, you define it like any other stylesheet, but instead of media="screen", you use media="print"

<link rel="stylesheet" href="http://www.paradoxdgn.com/wp-content/themes/paradox/print.css" type="text/css" media="print" />

Included in another stylesheet

If you have one stylesheet, and wish to include print styles in this stylesheet, you use a media selector.

@screen {
    a:link {
        color: green;
    }
}
@print {
    a:link {
        color: black;
    }
}

Tips

Rules of thumb

When you are designing a print stylesheet, many of the things you know about design from CSS still apply. But you have to take into account the change in medium.

Colors

Fonts

Margins and Pagebreaks

Borders

Images

Links

a:link:after {
    content: " (" attr(href) ") ";
}

Other site content

Retrieved from "http://library.paradoxdgn.com/page/Print_stylesheet"