<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://css.dzone.com"  xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dz="http://www.developerzone.com/modules/dz/1.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
 <title>Web Builder Zone - Comments for &quot;Optimize Your Links For Print Using CSS: Show The URL &quot;</title>
 <link>http://css.dzone.com/news/optimize-your-links-print-usin</link>
 <description>Comments for &quot;Optimize Your Links For Print Using CSS: Show The URL &quot;</description>
 <language>en</language>
<item>
 <title>@Andrew &amp; Chris:  That&#039;s</title>
 <link>http://css.dzone.com/news/optimize-your-links-print-usin#comment-1664</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;@Andrew &amp;amp; Chris:  That&#039;s right, Chris.  Since you don&#039;t always know what directory the page is in, javascript would be the best way to go.&lt;/p&gt;</description>
 <pubDate>Thu, 06 Mar 2008 09:19:32 -0500</pubDate>
 <dc:creator>davidwalsh</dc:creator>
 <guid isPermaLink="false">comment 1664 at http://css.dzone.com</guid>
</item>
<item>
 <title>@Andrew: That&#039;s a good</title>
 <link>http://css.dzone.com/news/optimize-your-links-print-usin#comment-1662</link>
 <description>&lt;!--paging_filter--&gt;@Andrew: That&#039;s a good question, I don&#039;t know that there is a way to do that. Maybe with some javascript finagling?</description>
 <pubDate>Thu, 06 Mar 2008 09:07:27 -0500</pubDate>
 <dc:creator>chriscoyier</dc:creator>
 <guid isPermaLink="false">comment 1662 at http://css.dzone.com</guid>
</item>
<item>
 <title>This is a great technique,</title>
 <link>http://css.dzone.com/news/optimize-your-links-print-usin#comment-1650</link>
 <description>&lt;!--paging_filter--&gt;This is a great technique, very handy for users. I did have one question in regards to displaying global URL&#039;s after the links. When I put the CSS in my print style sheet only the relative links appeared after the links. Of course this is better than nothing, but it&#039;s not ideal. Is there a way to display global URL&#039;s without putting them in the HTML?</description>
 <pubDate>Thu, 06 Mar 2008 00:51:59 -0500</pubDate>
 <dc:creator>Andrew Fleming</dc:creator>
 <guid isPermaLink="false">comment 1650 at http://css.dzone.com</guid>
</item>
<item>
 <title>This is SO timely. Just</title>
 <link>http://css.dzone.com/news/optimize-your-links-print-usin#comment-1528</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;This is SO timely. &lt;/p&gt;&lt;p&gt;Just yesterday, I had to print out a purchase receipt after buying an online service. It had links on the online receipt to places where I could get developer docs, find the control panel, and get support. But of course I just printed it out for my files thinking I&#039;d be able to find the links if I needed them.  &lt;/p&gt;&lt;p&gt;Only the underlined text printed out, of course. Oh, and the links were not present in my confirmation email, which was just dumb. I had to do a really difficult search to get back to the online version of the receipt, then bookmark those links.&lt;/p&gt;&lt;p&gt;I would not have minded being able to just type them in from paper considering how long it too me to find the receipt. &lt;/p&gt;</description>
 <pubDate>Fri, 29 Feb 2008 15:02:51 -0500</pubDate>
 <dc:creator>blathermoore</dc:creator>
 <guid isPermaLink="false">comment 1528 at http://css.dzone.com</guid>
</item>
<item>
 <title>Thanks.

And sure, it could</title>
 <link>http://css.dzone.com/news/optimize-your-links-print-usin#comment-1526</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Thanks.

&lt;/p&gt;&lt;p&gt;And sure, it could be modified in any number of ways since jQuery uses CSS3 selectors.  We could take it one step further and easily turn it into a jQuery plugin.  &lt;/p&gt;&lt;p&gt;I know it could be done in any framework, or with pure JS but I am a big fan of jQuery so thats why I do it this way.&lt;/p&gt;</description>
 <pubDate>Fri, 29 Feb 2008 14:29:34 -0500</pubDate>
 <dc:creator>bryanmig</dc:creator>
 <guid isPermaLink="false">comment 1526 at http://css.dzone.com</guid>
</item>
<item>
 <title>OMG that is a beautiful</title>
 <link>http://css.dzone.com/news/optimize-your-links-print-usin#comment-1521</link>
 <description>&lt;!--paging_filter--&gt;OMG that is a beautiful thing.  And with a small modification, you can have it filter to just whats in the &#039;mainContent&#039; div.  Nice contribution, thanks!</description>
 <pubDate>Fri, 29 Feb 2008 13:09:22 -0500</pubDate>
 <dc:creator>ext237</dc:creator>
 <guid isPermaLink="false">comment 1521 at http://css.dzone.com</guid>
</item>
<item>
 <title>One line of jQuery is all</title>
 <link>http://css.dzone.com/news/optimize-your-links-print-usin#comment-1518</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;One line of jQuery is all you need.  This uses the same approach as noted above by Joe, only it is done client side. &lt;/p&gt;&lt;p&gt;$(&#039;a&#039;).each(function(i,e){$(e).html($(e).html() + &amp;quot;&amp;lt;span class=&#039;print-only&#039;&amp;gt;&amp;quot;+this.href+&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;);})&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In your screen CSS:&lt;/p&gt;&lt;p&gt;span.print-only {display:none;} &lt;/p&gt;</description>
 <pubDate>Fri, 29 Feb 2008 12:29:03 -0500</pubDate>
 <dc:creator>bryanmig</dc:creator>
 <guid isPermaLink="false">comment 1518 at http://css.dzone.com</guid>
</item>
<item>
 <title>Awesome suggestion Chris --</title>
 <link>http://css.dzone.com/news/optimize-your-links-print-usin#comment-1514</link>
 <description>&lt;!--paging_filter--&gt;Awesome suggestion Chris -- I didn&#039;t include that in the code.</description>
 <pubDate>Fri, 29 Feb 2008 10:36:32 -0500</pubDate>
 <dc:creator>davidwalsh</dc:creator>
 <guid isPermaLink="false">comment 1514 at http://css.dzone.com</guid>
</item>
<item>
 <title>Another thing to consider is</title>
 <link>http://css.dzone.com/news/optimize-your-links-print-usin#comment-1513</link>
 <description>&lt;!--paging_filter--&gt;Another thing to consider is in which sections you would want this to happen. I really love this technique for the main content area, but I wouldn&#039;t want those anchor links printing their URL for things like your main menu. You could just do something like:
&lt;br /&gt;&lt;br /&gt;
#main-content a:after { content:&quot; [&quot; attr(href) &quot;] &quot;; }
&lt;br /&gt;&lt;br /&gt;
...in your print stylesheet.  This also assumes that you aren&#039;t already hiding your menu in the print stylesheet, which can also be a good idea.</description>
 <pubDate>Fri, 29 Feb 2008 10:23:24 -0500</pubDate>
 <dc:creator>chriscoyier</dc:creator>
 <guid isPermaLink="false">comment 1513 at http://css.dzone.com</guid>
</item>
</channel>
</rss>
