<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: 10 Minutes to Printer Friendly Page</title>
	<atom:link href="http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/</link>
	<description>Hypertext rulez™</description>
	<pubDate>Sun, 07 Sep 2008 17:59:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Mark  Saunders</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-134</link>
		<dc:creator>Mark  Saunders</dc:creator>
		<pubDate>Mon, 20 Dec 2004 20:06:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-134</guid>
		<description>Good article - though that's not why I'm writing :-)

I get FOUC (flash of unstyled content) on this page (am going through citrix metaframe) winxp prof IE 6. Actually FOUC is a bit of a misdescription, if i go to the printerfriendly version first and then come back I see the page in all its glory. :-)</description>
		<content:encoded><![CDATA[<p>Good article - though that&#8217;s not why I&#8217;m writing :-)</p>
<p>I get FOUC (flash of unstyled content) on this page (am going through citrix metaframe) winxp prof IE 6. Actually FOUC is a bit of a misdescription, if i go to the printerfriendly version first and then come back I see the page in all its glory. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zorglub</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-74</link>
		<dc:creator>Zorglub</dc:creator>
		<pubDate>Thu, 21 Oct 2004 19:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-74</guid>
		<description>It is true that, since the style switcher does not add an entry to the browser's history, you can't use the 'back' button to switch back.

Saying that I would use alternate &lt;em&gt;instead&lt;/em&gt; of device-driven stylesheets was actually incorrect.

What I do is to combine the two. The printer-friendly version is just another version, written with the printer in mind, but this doesn't exclude that I'm putting a similar control that allows to switch between any of the (possibly more than one) other style sheets.

In fact, I &lt;em&gt;also&lt;/em&gt; use the media print stylesheet to do some final cleaning before the page is printed.

I might be accused of tricking the visitor into believing that the switcher is printed as well, but I don't think that he will be disappointed by its absence...

After all, the objective is to allow the user to choose between a layout designed for the printer and the 'default' layout of the page, and that is something the style switcher does fine.

However, you have a point with the broken "back" functionality. I hadn't thought yet of the possibility that the visitor might try to use the back button to perform the switch. He might be a bit surprised by the behaviour.

I could of course add a line of text at the top of the printer-friendly page to tell users what exactly will be printed and how to return to the other layout, if I find that this behaviour gets really disturbing, but for the time being I'll rather put my money on their learning ability and hope this will not become necessary.

In the case of my database-driven website, anyway, the advantage of not having to regenerate sometimes rather complex contexts very much overweighs the disadvantage.</description>
		<content:encoded><![CDATA[<p>It is true that, since the style switcher does not add an entry to the browser&#8217;s history, you can&#8217;t use the &#8216;back&#8217; button to switch back.</p>
<p>Saying that I would use alternate <em>instead</em> of device-driven stylesheets was actually incorrect.</p>
<p>What I do is to combine the two. The printer-friendly version is just another version, written with the printer in mind, but this doesn&#8217;t exclude that I&#8217;m putting a similar control that allows to switch between any of the (possibly more than one) other style sheets.</p>
<p>In fact, I <em>also</em> use the media print stylesheet to do some final cleaning before the page is printed.</p>
<p>I might be accused of tricking the visitor into believing that the switcher is printed as well, but I don&#8217;t think that he will be disappointed by its absence&#8230;</p>
<p>After all, the objective is to allow the user to choose between a layout designed for the printer and the &#8216;default&#8217; layout of the page, and that is something the style switcher does fine.</p>
<p>However, you have a point with the broken &#8220;back&#8221; functionality. I hadn&#8217;t thought yet of the possibility that the visitor might try to use the back button to perform the switch. He might be a bit surprised by the behaviour.</p>
<p>I could of course add a line of text at the top of the printer-friendly page to tell users what exactly will be printed and how to return to the other layout, if I find that this behaviour gets really disturbing, but for the time being I&#8217;ll rather put my money on their learning ability and hope this will not become necessary.</p>
<p>In the case of my database-driven website, anyway, the advantage of not having to regenerate sometimes rather complex contexts very much overweighs the disadvantage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-73</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Thu, 21 Oct 2004 18:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-73</guid>
		<description>The main drawback of JavaScript styleswitcher is that it breaks &#8220;Back&#8221; button functionality.

With slight style changes such as different header image or font size, user is still in control, because he knows where he clicked to activate the  styleswitch and he can easily switch back. Printer friendly version should not have switch back link, otherwise it loses it&#8217;s purpose&#8212;displaying the main content only. If user come to printer friendly page from which he cannot get off, that&#8217;s simply not usable solution.</description>
		<content:encoded><![CDATA[<p>The main drawback of JavaScript styleswitcher is that it breaks &#8220;Back&#8221; button functionality.</p>
<p>With slight style changes such as different header image or font size, user is still in control, because he knows where he clicked to activate the  styleswitch and he can easily switch back. Printer friendly version should not have switch back link, otherwise it loses it&#8217;s purpose&#8212;displaying the main content only. If user come to printer friendly page from which he cannot get off, that&#8217;s simply not usable solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zorglub</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-72</link>
		<dc:creator>Zorglub</dc:creator>
		<pubDate>Thu, 21 Oct 2004 17:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-72</guid>
		<description>Fine tip, but its implementation can be problematic in dynamic sites, when it's not always that simple to reproduce the context in which the 'screen-friendly' version of the page was produced (data posted from forms). Also, it's a pity to have to go back to the server and request the same page again. The solution I'm working on uses alternate stylesheets (using a style switcher based on  &lt;a href="http://www.alistapart.com/articles/alternate/" title="Building a standards complying style switcher"&gt;Paul Sowden's ALA article&lt;/a&gt;). 

By using alternate instead of device-selected stylesheets I'll let the visitor choose which version he wants to print, without having to send a new request to the server and without the need for server-side scripts.</description>
		<content:encoded><![CDATA[<p>Fine tip, but its implementation can be problematic in dynamic sites, when it&#8217;s not always that simple to reproduce the context in which the &#8217;screen-friendly&#8217; version of the page was produced (data posted from forms). Also, it&#8217;s a pity to have to go back to the server and request the same page again. The solution I&#8217;m working on uses alternate stylesheets (using a style switcher based on  <a href="http://www.alistapart.com/articles/alternate/" title="Building a standards complying style switcher">Paul Sowden&#8217;s ALA article</a>). </p>
<p>By using alternate instead of device-selected stylesheets I&#8217;ll let the visitor choose which version he wants to print, without having to send a new request to the server and without the need for server-side scripts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin Millette</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-65</link>
		<dc:creator>Robin Millette</dc:creator>
		<pubDate>Mon, 18 Oct 2004 10:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-65</guid>
		<description>Of course, if the page URL already holds a query and that query defines the content, &lt;code&gt;&#60;a href="?q=printme"&#62;printer friendly version&#60;/a&#62;&lt;/code&gt; will drop the previous query so beware of that.</description>
		<content:encoded><![CDATA[<p>Of course, if the page URL already holds a query and that query defines the content, <code>&lt;a href="?q=printme"&gt;printer friendly version&lt;/a&gt;</code> will drop the previous query so beware of that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-64</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Sat, 02 Oct 2004 15:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-64</guid>
		<description>Nice idea.

I recently had to pull a print stylesheet because the client was printing clean printable pages and complaining that all the "swishy" layout had disappeared.

The tactics employed need to depend on the target viewer, but in a corporate situation it seems to me that most people will expect a 'screen-dump'-style printout.

The key (and what makes this method so cunning...) is not only to give people the choice of print formats, but to present the option as a usability feature. Every client loves usability, whether they know it or not.

I'll use this one.</description>
		<content:encoded><![CDATA[<p>Nice idea.</p>
<p>I recently had to pull a print stylesheet because the client was printing clean printable pages and complaining that all the &#8220;swishy&#8221; layout had disappeared.</p>
<p>The tactics employed need to depend on the target viewer, but in a corporate situation it seems to me that most people will expect a &#8217;screen-dump&#8217;-style printout.</p>
<p>The key (and what makes this method so cunning&#8230;) is not only to give people the choice of print formats, but to present the option as a usability feature. Every client loves usability, whether they know it or not.</p>
<p>I&#8217;ll use this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-59</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 25 Sep 2004 16:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-59</guid>
		<description>The reason this is a good tip is because of user expectation, not the fact Marko has come up with a server side switch for stylesheets...  While working with some rather large Web Sites users would complain that once we employed a print stylesheet they weren't printing what they had expected to print...  By providing a similar option to what Marko has detailed here we were able to please &lt;strong&gt;ALL&lt;/strong&gt; of our users... which, last time I checked, was the point... The overhead on adding such a feasture is so minimal that the arguements listed above are just silly...</description>
		<content:encoded><![CDATA[<p>The reason this is a good tip is because of user expectation, not the fact Marko has come up with a server side switch for stylesheets&#8230;  While working with some rather large Web Sites users would complain that once we employed a print stylesheet they weren&#8217;t printing what they had expected to print&#8230;  By providing a similar option to what Marko has detailed here we were able to please <strong>ALL</strong> of our users&#8230; which, last time I checked, was the point&#8230; The overhead on adding such a feasture is so minimal that the arguements listed above are just silly&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-58</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Fri, 24 Sep 2004 22:56:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-58</guid>
		<description>Rimantas,

No heart feelings : )

&lt;blockquote&gt;&lt;p&gt;&#8220;Well, we all have our ways to serve every visitor we can get&#8230; &#8221;&lt;/p&gt;&lt;/blockquote&gt;

Exactly, and if you like it this way, you're free to use it. If don't, at least let other people decide for themselves.

And what seems to be logical to you, doesn't have to make sense for someone else. That's interesting part after all when talking about usability&#8212;there's no just one absolute solution to a problem and it all might depend on the situation.</description>
		<content:encoded><![CDATA[<p>Rimantas,</p>
<p>No heart feelings : )</p>
<blockquote><p>&#8220;Well, we all have our ways to serve every visitor we can get&#8230; &#8221;</p>
</blockquote>
<p>Exactly, and if you like it this way, you&#8217;re free to use it. If don&#8217;t, at least let other people decide for themselves.</p>
<p>And what seems to be logical to you, doesn&#8217;t have to make sense for someone else. That&#8217;s interesting part after all when talking about usability&#8212;there&#8217;s no just one absolute solution to a problem and it all might depend on the situation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rimantas</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-57</link>
		<dc:creator>Rimantas</dc:creator>
		<pubDate>Fri, 24 Sep 2004 22:38:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-57</guid>
		<description>Pardon me: &lt;blockquote&gt;One page, two stylesheets&lt;/blockquote&gt;

That does not sound quite like &lt;blockquote&gt;This article only explains how to make a printer friendly version of the web page.&lt;/blockquote&gt;

As I see it it sounds like this: how to serve &lt;strong&gt;the same&lt;/strong&gt; non cacheable  page with all  extra markup which  won't be used at all for the second time.
That's twice the bandwidth - for you  and for your visitor. 
And really -  what is  an advantage compared to  good old media="print"?  Result is the same at the price of doubled  traffic and waiting time.
Well, we all have our ways to serve &lt;em&gt;every  visitor&lt;/em&gt; we can get... Just trying to  server every we can easily hurt  the wast majority.
Over and out.</description>
		<content:encoded><![CDATA[<p>Pardon me:<br />
<blockquote>One page, two stylesheets</p></blockquote>
<p>That does not sound quite like<br />
<blockquote>This article only explains how to make a printer friendly version of the web page.</p></blockquote>
<p>As I see it it sounds like this: how to serve <strong>the same</strong> non cacheable  page with all  extra markup which  won&#8217;t be used at all for the second time.<br />
That&#8217;s twice the bandwidth - for you  and for your visitor.<br />
And really -  what is  an advantage compared to  good old media=&#8221;print&#8221;?  Result is the same at the price of doubled  traffic and waiting time.<br />
Well, we all have our ways to serve <em>every  visitor</em> we can get&#8230; Just trying to  server every we can easily hurt  the wast majority.<br />
Over and out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-56</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Thu, 23 Sep 2004 23:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-56</guid>
		<description>I didn't say one should not use separate stylesheet for printing. This article only explains how to make a printer friendly version of the web page.
&lt;blockquote&gt;&lt;p&gt;&#8220;One visitor may want to print ad from the page. One thousand ohters want only content. I choose 1000.&#8221;&lt;/p&gt;&lt;/blockquote&gt;

I must say i choose &lt;strong&gt;every&lt;/strong&gt; visitor i can get. Can't help myself...</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t say one should not use separate stylesheet for printing. This article only explains how to make a printer friendly version of the web page.</p>
<blockquote><p>&#8220;One visitor may want to print ad from the page. One thousand ohters want only content. I choose 1000.&#8221;</p>
</blockquote>
<p>I must say i choose <strong>every</strong> visitor i can get. Can&#8217;t help myself&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rimantas</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-55</link>
		<dc:creator>Rimantas</dc:creator>
		<pubDate>Thu, 23 Sep 2004 22:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-55</guid>
		<description>Cameron's article  is interesting and  worth reading, sure. But it is wrong approach. One visitor may want to print ad from the page. One thousand ohters  want only content. I choose 1000.

If you  are going to server something different for the print  request  - serve  different HTML (and CSS), not CSS only. Why? Because  serving print  CSS on  separate request defeats  print CSS  as such.
 
Scenario A:  you have  HTML code  with  two css 
files linked : one  fomr media="screen", another for media="print". If someone decides to  print  it is  available ant instance, no extra requests to server. Even more, CSS are cached so...

Scenario B: you serve same HTML, but request another CSS from server. What you  get -  you double  bandwidth consumption for the HTML itself  - adding ?q=print will force rerequest  the same page  again.  Some browsers and  proxy servers won't cache such requests. You  end up always downloading same  html code again and again,  and this will  be the code with some content which is  never printed -  hidden  in print  CSS. What's the point?

My suggestion - do not  complicate  simple things.
Proper print CSS linked via media="print" is all you need.</description>
		<content:encoded><![CDATA[<p>Cameron&#8217;s article  is interesting and  worth reading, sure. But it is wrong approach. One visitor may want to print ad from the page. One thousand ohters  want only content. I choose 1000.</p>
<p>If you  are going to server something different for the print  request  - serve  different HTML (and CSS), not CSS only. Why? Because  serving print  CSS on  separate request defeats  print CSS  as such.</p>
<p>Scenario A:  you have  HTML code  with  two css<br />
files linked : one  fomr media=&#8221;screen&#8221;, another for media=&#8221;print&#8221;. If someone decides to  print  it is  available ant instance, no extra requests to server. Even more, CSS are cached so&#8230;</p>
<p>Scenario B: you serve same HTML, but request another CSS from server. What you  get -  you double  bandwidth consumption for the HTML itself  - adding ?q=print will force rerequest  the same page  again.  Some browsers and  proxy servers won&#8217;t cache such requests. You  end up always downloading same  html code again and again,  and this will  be the code with some content which is  never printed -  hidden  in print  CSS. What&#8217;s the point?</p>
<p>My suggestion - do not  complicate  simple things.<br />
Proper print CSS linked via media=&#8221;print&#8221; is all you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-52</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Thu, 23 Sep 2004 14:23:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-52</guid>
		<description>Tom,

Thank you for the resource. Here's what it would look like with just plain old SSI (Apache server):
&lt;code&gt;
&#60;!--#if expr="$QUERY_STRING = 'q=printme'" --&#62;
&#60;link rel="stylesheet" type="text/css" href="print.css" /&#62;
&#60;!--#else --&#62;
&#60;link rel="stylesheet" type="text/css" href="default.css" /&#62;
&#60;!--#endif --&#62;
&lt;/code&gt;
And of course your should rename your file's extension to &lt;code&gt;.shtml&lt;/code&gt; instead &lt;code&gt;.html&lt;/code&gt; to make SSI work. Read &lt;a href="http://httpd.apache.org/docs/howto/ssi.html"&gt;more about SSI&lt;/a&gt; techniques.</description>
		<content:encoded><![CDATA[<p>Tom,</p>
<p>Thank you for the resource. Here&#8217;s what it would look like with just plain old SSI (Apache server):<br />
<code><br />
&#60;!--#if expr="$QUERY_STRING = 'q=printme'" --&#62;<br />
&#60;link rel="stylesheet" type="text/css" href="print.css" /&#62;<br />
&#60;!--#else --&#62;<br />
&#60;link rel="stylesheet" type="text/css" href="default.css" /&#62;<br />
&#60;!--#endif --&#62;<br />
</code><br />
And of course your should rename your file&#8217;s extension to <code>.shtml</code> instead <code>.html</code> to make SSI work. Read <a href="http://httpd.apache.org/docs/howto/ssi.html">more about SSI</a> techniques.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom sherman</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-51</link>
		<dc:creator>tom sherman</dc:creator>
		<pubDate>Thu, 23 Sep 2004 03:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-51</guid>
		<description>This is a good tip, one I thought I was very clever to think of about a year and a half ago. ;)

See an example here:
&lt;a href="http://www.northwestern.edu/observer/issues/2003-11-06/briefs.html"&gt;Northwestern Observer article&lt;/a&gt;
&lt;a href="http://www.northwestern.edu/observer/issues/2003-11-06/briefs.html?printable"&gt;Northwestern Observer article (printable)&lt;/a&gt;

It uses an SSI check of the URL parameters.  If there is "printable" as a parameter, it includes a print stylesheet, which in turn hides every element in the source marked with class=print-hide (or specifically called out in the print stylesheet, like the nav).</description>
		<content:encoded><![CDATA[<p>This is a good tip, one I thought I was very clever to think of about a year and a half ago. ;)</p>
<p>See an example here:<br />
<a href="http://www.northwestern.edu/observer/issues/2003-11-06/briefs.html">Northwestern Observer article</a><br />
<a href="http://www.northwestern.edu/observer/issues/2003-11-06/briefs.html?printable">Northwestern Observer article (printable)</a></p>
<p>It uses an SSI check of the URL parameters.  If there is &#8220;printable&#8221; as a parameter, it includes a print stylesheet, which in turn hides every element in the source marked with class=print-hide (or specifically called out in the print stylesheet, like the nav).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-50</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Wed, 22 Sep 2004 22:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-50</guid>
		<description>Bryce, please read this article for explanation:  &lt;a href="http://www.themaninblue.com/writing/perspective/2004/07/09/"&gt;CSS, printing and user expectation&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Bryce, please read this article for explanation:  <a href="http://www.themaninblue.com/writing/perspective/2004/07/09/">CSS, printing and user expectation</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bryce</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-49</link>
		<dc:creator>bryce</dc:creator>
		<pubDate>Wed, 22 Sep 2004 20:31:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-49</guid>
		<description>Why is this necessary? You can accomplish the same thing by using the media attribute of the link tag.
&lt;code&gt;&#60;link rel="stylesheet" type="text/css" href="print.css" media="print" /&#62;
&#60;link rel="stylesheet" type="text/css" href="default.css" media="screen" /&#62;
&#60;link rel="stylesheet" type="text/css" href="pda.css" media="handheld" /&#62;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Why is this necessary? You can accomplish the same thing by using the media attribute of the link tag.<br />
<code>&lt;link rel="stylesheet" type="text/css" href="print.css" media="print" /&gt;<br />
&lt;link rel="stylesheet" type="text/css" href="default.css" media="screen" /&gt;<br />
&lt;link rel="stylesheet" type="text/css" href="pda.css" media="handheld" /&gt;</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-48</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Wed, 22 Sep 2004 18:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-48</guid>
		<description>Zyt ;-)</description>
		<content:encoded><![CDATA[<p>Zyt ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zytzagoo</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-47</link>
		<dc:creator>zytzagoo</dc:creator>
		<pubDate>Wed, 22 Sep 2004 17:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-47</guid>
		<description>Hi Marko, nice tip!
Just a small remark for those who have php's error_reporting set to E_ALL - to aviod being issued a warning from php about $_GET['q'] not being defined, use this:

&lt;code&gt;&#60;?php if (isset($_GET['q']) &#038;&#038; $_GET['q'] == 'printme') { ?&#62;
&#60;link rel="stylesheet" type="text/css" href="print.css" /&#62;
&#60;?php } else { ?&#62;
&#60;link rel="stylesheet" type="text/css" href="default.css" /&#62;
&#60;?php } ?&#62;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Marko, nice tip!<br />
Just a small remark for those who have php&#8217;s error_reporting set to E_ALL - to aviod being issued a warning from php about $_GET['q'] not being defined, use this:</p>
<p><code>&lt;?php if (isset($_GET['q']) &#038;&#038; $_GET['q'] == &#8216;printme&#8217;) { ?&gt;<br />
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;print.css&#8221; /&gt;<br />
&lt;?php } else { ?&gt;<br />
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;default.css&#8221; /&gt;<br />
&lt;?php } ?&gt;</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Šime Ramov</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-46</link>
		<dc:creator>Šime Ramov</dc:creator>
		<pubDate>Tue, 21 Sep 2004 22:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-46</guid>
		<description>Thanks!

And for the tip in the article, I will likely use it on my upcoming weblog :)</description>
		<content:encoded><![CDATA[<p>Thanks!</p>
<p>And for the tip in the article, I will likely use it on my upcoming weblog :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marko</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-45</link>
		<dc:creator>marko</dc:creator>
		<pubDate>Tue, 21 Sep 2004 22:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-45</guid>
		<description>&#352;ime, i'm glad you like it!
 
And by-the-way, i'm a little-bit late, but Happy Birthday, old buddy!</description>
		<content:encoded><![CDATA[<p>&#352;ime, i&#8217;m glad you like it!</p>
<p>And by-the-way, i&#8217;m a little-bit late, but Happy Birthday, old buddy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sime Ramov</title>
		<link>http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-44</link>
		<dc:creator>Sime Ramov</dc:creator>
		<pubDate>Tue, 21 Sep 2004 18:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#comment-44</guid>
		<description>Nice tip Marko! Thanks.</description>
		<content:encoded><![CDATA[<p>Nice tip Marko! Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
