CSS Print stylesheet tricks

Posted on in CSS

There are some cool styling tricks, which are nice to have when it comes to printing out a webpage.
Please see my Print CSS snippets and tricks:

  1. Do not use much styles. If you print out a webpage you don?t want to print colors! (unless to color hyperlinks). Keep it plain and simple and write a short print stylesheet.
  2. Make sure you named your (2nd) stylesheet for printing: print.css And give it the ?media? attribute print:
    <link rel="stylesheet" type="text/css" href="print.css" media="print" />
  3. Use a good readable font. I would say a ?serif? 12pt font and ofcourse keep it black.
    body { color : #000000; background : #ffffff; font-family : "Times New Roman", Times, serif; font-size : 12pt; }
  4. It should be clear when a hyperlink is printed. Therefore keep links underlined. You can even color it blue.
    a { text-decoration : underline; color : #0000ff; }
  5. Do not print out layout parts, navigation, javascript or flash animations.
    #navigation, #headerImage { display: none; }
  6. This is a handy trick: With these styles you can set a page break for printing before or after: Possible attributes are: always (print page break) | auto (default ? page break where page ends) | left | right.
    H1 {page-break-after: auto}
    H2 {page-break-before: always}
  7. Another handy trick, is to print the URL after an underlined hyperlink:
    a:link:after, a:visited:after { content: " (" attr(href) ")"; }

That's it for now.

200 cialis coupon canada cialis canada viagra cost of levitra levitra vs viagra is viagra funded by government over the counter viagra otc viagra viagra ingredients levitra 10 mg cialis pills for sale viagra substitute viagra government funded levitra loc us cialis alternative cialis 20 mg cialis 5mg viagra for sale cialis coupon is viagra covered by insurance buy levitra cyalis cialis testimonials cialis pills cost of viagra generic levitra buy levitra online female viagra where to buy viagra viagra pharmacy daily cialis lowest cialis prices viagra porn cialis dosage recommendations cialas viagra price cialis without a doctor's prescription cialis or viagra levitra coupons levitra 20mg order online viagra cialis 5mg daily cialis generic viagra for women canadian cialis viagra dosage non prescribed viagra buy viagra online side effects of cialis viagra girls generic cialis tadalafil cialis for daily use viagra generic cialis discount generic cialis at walmart viagra patent expiration cialis 20mg directions online viagra viagra from amazon is viagra government funded levitra cealis levitra online cialis tadalafil levitra canada free viagra online cialis cialis samples cialis 30 day trial coupon herbal viagra side effects of viagra buy cialis online viagra sex cialis canadian pharmacy cialis voucher levitra side effects what is levitra levitra prices cialis savings card levitra 10mg pfizer viagra viagra from canada cialis online cialis dosage strengths erectile dysfunction cialis healthy man viagra liquid cialis viagra cost cialis samples overnight how much does viagra cost sex viagra for women cialis for bph cialis patent expiration 2017 9 levitra at walmart cialis prices best price viagra free cialis cialis trial viagra side effects viagra without prescription does viagra work viagra cvs pharmacy viagra coupons does the government fund viagra how long does viagra last buy cialis what is viagra generic for cialis viagra online cialis generic tadalafil cialis 10 mg cheap cialis viagra activate viagra samples cialis medication levitra dosage what is cialis viagra vs cialis vs levitra cialis copay card viamedic cialis cialis coupon 20 mg when will cialis go generic inexpensive viagra pills how long does levitra last levitra cost cialis patent expiration date extended viagra pill how does cialis work cialis viagra dose viagra canada cost of cialis generic viagra 100mg cialis vs viagra cialis pricing cialis professional cialis free trial viagra alternatives natural viagra cialis coupons women viagra cialis reviews viagra vs cialis cialis canada viagra pills for sale what does viagra do cialis or viagra viagra vs cialis vs levitra levitra vs viagra for hardness levitra coupon cialis for sale cialis 20mg cialis patent expiration viagra without a doctor prescription usa is viagra federally funded how much does cialis cost levitra without a doctor prescription sophia viagra cialis coupons printable generic for viagra discount cialis viagra coupon viagra prices without insurance cialis cost viagra coupons cialis side effects levitra reviews cialis pharmacy prices cialis daily natural viagra alternatives that work price cialis generic viagra viagra pills viagra best price viagra prices viagra coupons 75 off cialis for women is viagra government funded in america cialis coupon print viagra 100mg price walmart canadian viagra discount viagra walgreens viagra substitute viagra single packs cost viagra coupons from pfizer viagra costs cialis generic availability generic cialis revatio vs viagra generic viagra available in usa pfizer viagra coupons viagra vs cialis cialis 5 mg cialis price cialis effects viagra 100mg tablets retail price viagra savings offer how does viagra work cialis dosage utilisation viagra viagra single packs trial viagra sample levitra 20 mg cost walmart wholesale cialis cialis on line cialis coupons from manufacturer cheap viagra sildenafil vs viagra viagra cialis buy viagra cialis otc cilias cialis 30 day sample viagra on line no prec viagra on line levitra 20 mg cialis cheap viagra government funding cialis from canada levitra vs viagra cialis sample how to take cialis viagra without a doctor prescription cialis vs viagra levitra vs cialis cialis website cialis coupons 2017 levitra generic female viagra pills stendra vs viagra cialis for men