Print.css

Hi all just wondering does anyone include a print.css file anymore with sites? I’ve seen some on older sites but not newer ones.

Thanks.
Al.

I’ve used a print.css for years, and I will continue to do so, as many others do. The time and effort it adds to the development process is minimal, and it can potentially be very helpful for your users. There are still a surprising number of people who want to print things off the web – part of this will be determined by what sort of content you are giving as to whether it’s appropriate or necessary for people to print. Some things lend themselves to it much more than others!

Great thanks for that, just wanted to know if people were still using a print.css file, as I’ve never created one. I’ll be sure to add one to my next project.

I deploy a print.css stylesheet as well. It doesn’t take much time.

Mainly just use display:none on the elements that aren’t worth printing and use something like this to display hyperlinks:

#content a:link:after, #content a:visited:after {
    content: " (" attr(href) ")";
    font-size: 80%;
    word-wrap: break-word;
}
#content a[href^="/"]:after {
    content: " (http://example.org" attr(href) ")";
    word-wrap: break-word;
}

#content a{
    word-wrap: break-word;
}

Thanks for that Force Flow.