<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Identifying External Links With CSS</title>
	<link>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/</link>
	<description>Utterly random, incoherent and disjointed rants and ramblings...</description>
	<pubDate>Fri, 09 Jan 2009 02:11:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/#comment-11138</link>
		<pubDate>Fri, 02 Jan 2009 21:23:08 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/#comment-11138</guid>
					<description>[quote post="2673"]he image still has a link indicator, but it’s hidden underneath the image itself. This works primarily because all images in my content are padded uniformly (at 7px, not 6 or 8, don’t make fun of me).[/quote]

Well, 7 is a perfectly respectable number. :) 

I may switch to image based link indicators at some point just to hide them on image links. :P</description>
		<content:encoded><![CDATA[<blockquote cite="http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/"><p>
he image still has a link indicator, but it’s hidden underneath the image itself. This works primarily because all images in my content are padded uniformly (at 7px, not 6 or 8, don’t make fun of me).</p>
</blockquote>
<p>Well, 7 is a perfectly respectable number. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" />  </p>
<p>I may switch to image based link indicators at some point just to hide them on image links. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_razz.gif" alt="P" class="wp-smiley" />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brad Czerniak</title>
		<link>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/#comment-11134</link>
		<pubDate>Fri, 02 Jan 2009 15:55:23 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/#comment-11134</guid>
					<description>Instead of using a character and the :after pseudo-element, I use the icon solution from &lt;a href="http://www.psyked.co.uk/css/auto-matic-link-icons.htm" rel="nofollow"&gt;http://www.psyked.co.uk/css/auto-matic-link-icons.htm&lt;/a&gt;.
At first I was having the same issue with images, but one thing I tried is something like this:
&lt;pre lang="css"&gt;#content a[href^="http:"] {display:inline-block;padding-right:14px;background:transparent url(/images/external.png) center right no-repeat;}
#content a[href^="http:"] img {margin-right:-21px;padding-right:7px;}&lt;/pre&gt;
The image still has a link indicator, but it's hidden underneath the image itself. This works primarily because all images in my content are padded uniformly (at 7px, not 6 or 8, don't make fun of me).
Hope this helps.</description>
		<content:encoded><![CDATA[<p>Instead of using a character and the :after pseudo-element, I use the icon solution from <a href="http://www.psyked.co.uk/css/auto-matic-link-icons.htm" rel="nofollow">http://www.psyked.co.uk/css/auto-matic-link-icons.htm</a>.<br />
At first I was having the same issue with images, but one thing I tried is something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css"><span style="color: #cc00cc;">#content</span> a<span style="color: #66cc66;">&#91;</span>href^=<span style="color: #ff0000;">&quot;http:&quot;</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#123;</span>display<span style="color: #3333ff;">:inline-block</span>;padding-right<span style="color: #3333ff;">:<span style="color: #933;">14px</span></span>;background<span style="color: #3333ff;">:transparent</span> <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #933;">/images/external<span style="color: #6666ff;">.png</span></span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">center</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #993333;">no-repeat</span>;<span style="color: #66cc66;">&#125;</span>
<span style="color: #cc00cc;">#content</span> a<span style="color: #66cc66;">&#91;</span>href^=<span style="color: #ff0000;">&quot;http:&quot;</span><span style="color: #66cc66;">&#93;</span> img <span style="color: #66cc66;">&#123;</span>margin-right<span style="color: #3333ff;">:-<span style="color: #933;">21px</span></span>;padding-right<span style="color: #3333ff;">:<span style="color: #933;">7px</span></span>;<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>The image still has a link indicator, but it&#8217;s hidden underneath the image itself. This works primarily because all images in my content are padded uniformly (at 7px, not 6 or 8, don&#8217;t make fun of me).<br />
Hope this helps.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/#comment-10370</link>
		<pubDate>Sun, 12 Oct 2008 20:11:51 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/#comment-10370</guid>
					<description>@&lt;a href="#comment-10342" rel="nofollow"&gt;Jam&lt;/a&gt;: No problem - that's why I post things here - so that people can use it if they want. :)

As for you question - I'm not sure what you mean, but I think the answer is probably yes. Do you mean something like:

&lt;pre lang="java"&gt;&lt;a href="...."  class="extlink" rel="nofollow"&gt;&lt;/pre&gt;

or

&lt;pre lang="java"&gt;&lt;a href="...."  rel="nofollow extlink"  rel="nofollow"&gt;&lt;/pre&gt;

If yes then you could totally do that. It won't affect any of your old links that don't have the class extlink.</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-10342" rel="nofollow">Jam</a>: No problem - that&#8217;s why I post things here - so that people can use it if they want. <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" /> </p>
<p>As for you question - I&#8217;m not sure what you mean, but I think the answer is probably yes. Do you mean something like:</p>

<div class="wp_syntax"><div class="code"><pre class="java">&lt;a href=<span style="color: #ff0000;">&quot;....&quot;</span>  <span style="color: #000000; font-weight: bold;">class</span>=<span style="color: #ff0000;">&quot;extlink&quot;</span> rel=<span style="color: #ff0000;">&quot;nofollow&quot;</span>&gt;</pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="java">&lt;a href=<span style="color: #ff0000;">&quot;....&quot;</span>  rel=<span style="color: #ff0000;">&quot;nofollow extlink&quot;</span>  rel=<span style="color: #ff0000;">&quot;nofollow&quot;</span>&gt;</pre></div></div>

<p>If yes then you could totally do that. It won&#8217;t affect any of your old links that don&#8217;t have the class extlink.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jam</title>
		<link>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/#comment-10342</link>
		<pubDate>Tue, 07 Oct 2008 20:37:54 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/#comment-10342</guid>
					<description>This is fantastic :)
I'm going to have to use it on my blog.. if you don't mind that is ?

And can't just have something like:
&lt;pre lang="java"&gt;&lt;a href="...." / rel="nofollow"&gt;&lt;/pre&gt;
and then have the code for the external link innbetween CSS tags that name it extlink?

Sorry if that is confusing, or just plain dumb :)

Jam</description>
		<content:encoded><![CDATA[<p>This is fantastic <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" /><br />
I&#8217;m going to have to use it on my blog.. if you don&#8217;t mind that is ?</p>
<p>And can&#8217;t just have something like:</p>

<div class="wp_syntax"><div class="code"><pre class="java">&lt;a href=<span style="color: #ff0000;">&quot;....&quot;</span> / rel=<span style="color: #ff0000;">&quot;nofollow&quot;</span>&gt;</pre></div></div>

<p>and then have the code for the external link innbetween CSS tags that name it extlink?</p>
<p>Sorry if that is confusing, or just plain dumb <img src="http://www.terminally-incoherent.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" /> </p>
<p>Jam
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Luke Maciak</title>
		<link>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/#comment-10330</link>
		<pubDate>Mon, 06 Oct 2008 19:56:28 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/#comment-10330</guid>
					<description>That would probably be an optimal solution, but keep in mind I have an archive consisting of approximately 5 years of daily posts. I could start putting the rel on external links today but it would not work retroactively without running some regexps on the whole archive.

I would also need to pre-process the incoming links in the comments to make sure the external ones are appropriately tagged. All in all, not a perfect solution. If I was starting a new blog today, I'd probably consider going that route.</description>
		<content:encoded><![CDATA[<p>That would probably be an optimal solution, but keep in mind I have an archive consisting of approximately 5 years of daily posts. I could start putting the rel on external links today but it would not work retroactively without running some regexps on the whole archive.</p>
<p>I would also need to pre-process the incoming links in the comments to make sure the external ones are appropriately tagged. All in all, not a perfect solution. If I was starting a new blog today, I&#8217;d probably consider going that route.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: aaaaaaaaa</title>
		<link>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/#comment-10329</link>
		<pubDate>Mon, 06 Oct 2008 19:31:51 +0000</pubDate>
		<guid>http://www.terminally-incoherent.com/blog/2008/10/06/identifying-external-links-with-css/#comment-10329</guid>
					<description>&lt;a href="http://www.reddit.com/r/web_design/comments/75iq3/identifying_external_links_with_css/c05qegs" rel="nofollow"&gt;from reddit&lt;/a&gt;&lt;blockquote&gt;Why not just stick rel="external" on the links and use a[rel="external"] ? No "hacking" necessary.&lt;/blockquote&gt;

furthermore, when your CMS processes submitted text, you could remove the rel from links that contain images. still semantically incorrect, i know, but it's better than messing with classes.</description>
		<content:encoded><![CDATA[<p><a href="http://www.reddit.com/r/web_design/comments/75iq3/identifying_external_links_with_css/c05qegs" rel="nofollow">from reddit</a></p>
<blockquote><p>Why not just stick rel=&#8221;external&#8221; on the links and use a[rel=&#8221;external&#8221;] ? No &#8220;hacking&#8221; necessary.</p>
</blockquote>
<p>furthermore, when your CMS processes submitted text, you could remove the rel from links that contain images. still semantically incorrect, i know, but it&#8217;s better than messing with classes.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.562 seconds -->
