Skip navigation.

Make Every Web Page Printer-Friendly

Comment permalink 1 SomeNewKid |
A great summary of using CSS for print-friendly pages.

Well done, Milan.
Comment permalink 2 Jesse |
Great CSS ideas. My first thought was to create a Printer Friendly ASP.Net page that dynamically strips content by parsing through content from any site page but that's way too big a hammer.

This solution is elegant and easy.

Jesse
Comment permalink 3 Damien McGivern |
sweet!
Comment permalink 4 haidar_bilal |
Hello, is it possible to have a combined example ? I mean an example to test ?
Thanks, good work.
Comment permalink 5 Milan Negovan |
Feel free to grab my print style sheet. You can type a URL to it straight in the address bar or save any page from the File menu of your browser.
Comment permalink 6 haidar_bilal |
Hello Milan,
Thanks man, I did that only after I sent you a message :)
Good Luck.
Comment permalink 7 Ritesh Garg |
I wan to set the Width and Height of the Page to which i wan to print
may i know how can i do this
This article discuss abt same, but not clear abt that

Can u please tell me abt same

Thankx in advance
Comment permalink 8 Milan Negovan |
Good question. I don't know if you can control the dimensions of printed page. I think printer preferences is where you'd set the width and height.
Comment permalink 9 Michelle Choi |
Wow. I'm glad I found this article.

I've been sitting here trying to figure out exactly what to do to make a few checklist pages on my site printer friendly and this just makes it much easier. Just have to add a few more tags and clean up a bit and it'll be great!

Any suggestions on making little checkbox gifs into simple checkboxes using these style sheets? LOL Not mine, but some AFF things I don't want to mess with. Aw, to heck with it. Their code is so messy anyway, I'll just clean it up.


Thanks so much!
Michelle
Comment permalink 10 Nishant Pant |
Great article. Very nice and elegant approach to printing. Just what I needed.
Comment permalink 11 Andy |
I have a page I created showing calendar controls that have differents colored ranges of dates that my users want to print (in color) but printing from the browser will not display them. (?) They have to paste a screen shot of the Web page into "MSWord" to get the actual WYSIWYG print. Is there some way around this issue?

Any suggestion's would be appreciated.
Comment permalink 12 Milan Negovan |
Andy, do you have this page online, or could you send me a sample?

Also, if you enable "Print background colors and images" in Advanced Options in IE, does it help?
Comment permalink 13 BigEars |
Probably the best page I've read on ASP.NET development !
Comment permalink 14 Hananya Even-chen |
Great man,

you saved me many hours of dealing with javascript and asp and it is so simple and elegant.

thank's

hananya
Comment permalink 15 amol chikurte |
simply Great Job U done !!!
Comment permalink 16 James Wicky |
What about page breaks? Not all pages are the perfect 8.5x11. I did find br.newpage{page-break-before: always;} that is added like
that does work, sort of... do have to print and guess at where the break should be. any suggestions?
Comment permalink 17 website designer india |
Great article. Very nice and elegant approach to printing. Just what I needed. Thanks Dude... Excellent Job...

Keep up your good work :)
Comment permalink 18 sANTOSH |
Nice job.It will save my many hours

Submit your comment

Please enter only text since all HTML tags except hyperlinks will be stripped. Hyperlinks will become live links. Any comments with flaming or offensive language will be deleted. Be courteous to other posters. Thank you.

Your name (required):
Your email (optional):
Your site's URL (optional):
Enter this number
Type in the number above:
Comment (required):