Forum Moderators: coopster

Message Too Old, No Replies

printer friendly view?

any existing functions?

         

dmmh

4:17 pm on Apr 5, 2005 (gmt 0)

10+ Year Member



anyone have an fucntion to create a printer friendly view of a webpage? perhaps even if you tag some html element only those get printed?

jusdrum

4:57 pm on Apr 5, 2005 (gmt 0)

10+ Year Member



Try using CSS to do this. Create a printer-friendly stylesheet, then link it in the head of the HTML document like so:

<link rel="stylesheet" href="css/regular-styles.css" media="screen" />
<link rel="stylesheet" href="css/print-friendly.css" media="print" />

With CSS, if your site is built the right way, you can alter the entire appearance of the same HTML without resorting to doing backflips with PHP.

Hope this helps!