SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: print.css

  1. #1
    SitePoint Zealot allanlud's Avatar
    Join Date
    Jul 2012
    Location
    Meath, Ireland
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  2. #2
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,892
    Mentioned
    123 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by allanlud View Post
    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.
    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!

  3. #3
    SitePoint Zealot allanlud's Avatar
    Join Date
    Jul 2012
    Location
    Meath, Ireland
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,617
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    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:


    Code:
    #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;
    }
    Last edited by Force Flow; Feb 22, 2013 at 11:38.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  5. #5
    SitePoint Zealot allanlud's Avatar
    Join Date
    Jul 2012
    Location
    Meath, Ireland
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for that Force Flow.


Tags for this Thread

Bookmarks

Posting Permissions

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