Forum Moderators: not2easy

Message Too Old, No Replies

CSS print page

how to let people know it's a printable page

         

annej

8:40 pm on Jun 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've used the following code:

<LINK rel="stylesheet" type"text/css" href="http://www.mysite.com/screenversion.css" media="screen">

<LINK rel="stylesheet" type"text/css" href="http://www.mysite.com/printversion.css" media="print">

to set printable pages. It works great but how will people know that the pages are automatically printable? I can't link to the printable page as it's the same page.

Any solutions?

swa66

12:16 am on Jun 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Their browser will use the print CSS on it's own when they print, so all you need to do is let them know they can print ...

What I do to make it clear the can print is to add something like:

<a href="/printsok.html" onclick="window.print();return false">print</a>

Well replace the word print with a image etc....

Where I explain in the printsok.html page for those that have javascript turned off that they should go back and search for the print option in their browser.

Never had questions from users after that.

annej

6:16 am on Jun 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Wow, thanks so much! It works perfectly. I knew there was a way to do this but had no idea how.