<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>johnmu.com &#187; CSS</title>
	<atom:link href="http://johnmu.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnmu.com</link>
	<description>John Mueller's technical website tips and tricks</description>
	<lastBuildDate>Thu, 03 Dec 2009 12:42:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Seeing nofollow links in Google Chrome</title>
		<link>http://johnmu.com/seeing-nofollow-links-in-google-chrome/</link>
		<comments>http://johnmu.com/seeing-nofollow-links-in-google-chrome/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 22:31:15 +0000</pubDate>
		<dc:creator>John Mueller</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://johnmu.com/?p=149</guid>
		<description><![CDATA[Here's a simple trick to view nofollow links in Google Chrome. Just drag and drop the following button to your bookmark bar and hit it whenever you want to see links with the rel=nofollow HTML microformat:

Nofollow?

This bookmarklet inserts a tiny bit of CSS into the top of the page you're currently viewing. The CSS is [...]]]></description>
			<content:encoded><![CDATA[<p>Here's a simple trick to view nofollow links in Google Chrome. Just drag and drop the following button to your bookmark bar and hit it whenever you want to see links with the rel=nofollow HTML microformat:</p>
<p><!-- --></p>
<p><a href="javascript:function%20highlightNofollow(){var%20newStyle=document.createElement('style');newStyle.type='text/css';newStyle.appendChild(document.createTextNode('a[rel~=nofollow]{border:1px%20dashed%20#852!%20important;background-color:#fcc!%20important;}'));document.getElementsByTagName('head')[0].appendChild(newStyle);};highlightNofollow();" style="background-color: #eef; border: solid 1px #aaa; color: #446; padding: .5em 2em; text-decoration: none; font-weight: bold; text-shadow: 1px 1px 1px #88a; font-size: 1.1em; -webkit-box-shadow: 2px 2px 2px #666;" title="Nofollow?">Nofollow?</a></p>
<p><!-- --></p>
<p>This bookmarklet inserts a tiny bit of CSS into the top of the page you're currently viewing. The CSS is similar to that which is used in <a href="http://www.mattcutts.com/blog/seeing-nofollow-links/">other nofollow highlighting methods</a>:<br />
<span id="more-149"></span></p>
<div class="igBar"><span id="lcss-2"><a href="#" onclick="javascript:showPlainTxt('css-2'); return false;">Select code</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-2">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">a<span style="color: #66cc66;">&#91;</span>rel~=nofollow<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; border<span style="color: #3333ff;">:1px </span>dashed #852! important;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000000; font-weight: bold;">background-color</span>:#fcc! important;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p><!-- css-2--></p>
<p>Try it out on a <a href="http://en.wikipedia.org/wiki/Google_Chrome">page with nofollowed links</a>!</p>
<p>By the way, this bookmarklet also works in Opera &#038; Firefox (but there are simpler ways to handle it in Firefox). </p>
<hr/>Copyright &copy; 2010 <strong><a href="http://johnmu.com">johnmu.com</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact johnmu.com so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>]]></content:encoded>
			<wfw:commentRss>http://johnmu.com/seeing-nofollow-links-in-google-chrome/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Adding user-friendly rel=nofollow markup (for IE too!)</title>
		<link>http://johnmu.com/userfriendly-rel-nofollow/</link>
		<comments>http://johnmu.com/userfriendly-rel-nofollow/#comments</comments>
		<pubDate>Sat, 28 Jul 2007 10:31:19 +0000</pubDate>
		<dc:creator>John Mueller</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://johnmu.com/userfriendly-rel-nofollow/</guid>
		<description><![CDATA[The next step after adding CSS to highlight links with rel=nofollow is to give the user some information about what the  symbol and the dashed line mean. Since CSS will not allow you to add tooltips and links, we have to resort to some javascript trickery. The up-side to this is that it will [...]]]></description>
			<content:encoded><![CDATA[<p>The next step after adding <a href="http://johnmu.com/highlight-nofollow/">CSS to highlight links with rel=nofollow</a> is to give the user some information about what the <img src="http://johnmu.com/files/nofollow.gif" alt="nofollow symbol" /> symbol and the <span style="border-bottom: dashed 2px #ffa500">dashed line</span> mean. Since CSS will not allow you to add tooltips and links, we have to resort to some javascript trickery. The up-side to this is that it will also display the markup on older browsers like IE 6. </p>
<p>Adding this kind of markup to your site is pretty easy to do.<br />
<span id="more-88"></span></p>
<ol>
<li>Download the <a href="http://johnmu.com/files/nofollow-js/highlight-nofollow.js">script</a> and the <a href="http://johnmu.com/files/nofollow-js/nofollow.gif">nofollow image</a>. </li>
<li>Open the script file in a text editor (Notepad is fine) and adjust the settings on top:
<div class="igBar"><span id="ljavascript-5"><a href="#" onclick="javascript:showPlainTxt('javascript-5'); return false;">Select code</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-5">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// settings, modify as desired</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> myInfoPage =<span style="color: #3366CC;">"http://domain.com/nofollow-info.htm"</span>;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// local page with nofollow information</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> myNofollowImg = <span style="color: #3366CC;">"http://domain.com/images/nofollow.gif"</span>;&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">// source of nofollow image (check for full path!)</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// warning must be html-formatted</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> myWarnMsg = <span style="color: #3366CC;">"Beware: this link is potentially bad or not trusted! Click here to find out more."</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p><!-- javascript-5-->
</li>
<li>Upload the script and the image (place the image in the path you specified in your script), don't forget to create your informational page for the nofollow (I'm just linking to my <a href="http://johnmu.com/policy/nofollow/">nofollow-policy page</a>). </li>
<li>In your template, right before the closing "&lt;/body&gt;" tag, add a reference to the script. In a Wordpress theme you would add this to your footer.php, eg:
<div class="igBar"><span id="lhtml-6"><a href="#" onclick="javascript:showPlainTxt('html-6'); return false;">Select code</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-6">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- nofollow highlighting --&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"&lt;?php bloginfo('stylesheet_directory'); ?&gt;</span>/highlight-nofollow.js&quot; type=&quot;text/javascript&quot;&gt;<span style="color: #009900;">&lt;/script&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">... <span style="color: #009900;">&lt;/body&gt;</span> ... </span></div>
</li>
</ol>
</div>
</div>
</div>
<p><!-- html-6-->
</li>
<li>Refresh your browser and check the results. I have a local <a href="http://johnmu.com/files/nofollow-js/nofollow-test.htm">test page</a> which shows it in action (and here's a <a rel="woah nofollow" href="http://en.wikipedia.org/wiki/LeChuck">nofollow'ed link</a> thrown in for good measure).</li>
</ol>
<p>Currently the code only adds the image and underline to links that contain a text anchor. This means that links with only an image as the anchor are not modified (but the CSS nofollow highlighting will still be displayed, so be careful if you use that and have image-only links with rel=nofollow). The code was tested on IE 6 and 7.0, Opera 9.01 and Firefox 2.0.0.5. </p>
<p>The code removes the rel=nofollow from the displayed page (it still remains in the static page) so that the different kinds of nofollow markup (including those you might have installed in your browser or with a browser plugin) do not create conflicts. Just to be sure: <strong>this script does not change anything on your actual pages</strong>, it only changes how the page looks to the user. A search engine crawler would not see these changes.</p>
<p>Advanced users can modify the markup that is added to each link, perhaps even use it to open a floating window on top of the current page instead of going to a separate page. </p>
<p>Current version is v1.0 - 2007-07-28</p>
<hr/>Copyright &copy; 2010 <strong><a href="http://johnmu.com">johnmu.com</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact johnmu.com so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>]]></content:encoded>
			<wfw:commentRss>http://johnmu.com/userfriendly-rel-nofollow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding &#8220;rel=nofollow&#8221; markup to your site</title>
		<link>http://johnmu.com/highlight-nofollow/</link>
		<comments>http://johnmu.com/highlight-nofollow/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 01:10:11 +0000</pubDate>
		<dc:creator>John Mueller</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://johnmu.com/highlight-nofollow/</guid>
		<description><![CDATA[I support the "rel=nofollow" HTML microformat as a way to mark links which might be problematic, whether they're clearly spammy, just not checked or even just sites that I don't really want to link to (but still want to provide a link for others to use - you know, "don't look, but that guy's got [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://johnmu.com/wp-content/stuff/caution200.jpg' alt="caution - bad links ahead" class="alignleft" />I support the <a href="http://microformats.org/wiki/rel-nofollow">"rel=nofollow" HTML microformat</a> as a way to mark links which might be problematic, whether they're clearly spammy, just not checked or even just sites that I don't really want to link to (but still want to provide a link for others to use - you know, "don't look, but that guy's got a <a rel="nofollow" href="http://images.google.com/images?q=big+nose">giant nose</a>!"). I understand that it is important for search engines to recognize these kinds of links and to treat them differently. This of course implies that sites use the rel=nofollow properly and do not just apply it to all outbound links (or at least to all links that do not go to their own network)...</p>
<p>That said, I believe that all users should be able to recognize these links as being problematic (or untrusted) at first glance. The more advanced, web-savvy users will sometimes have <a href="http://www.quirk.biz/searchstatus/">tools</a> installed or <a href="http://www.linktutorial.com/read/articles/detecting-relnofollow-firefox">special settings</a> which highlight links with "rel=nofollow", the normal user does not. <strong>If a link is marked as being problematic / untrusted for search engines, the user should see that as well</strong> -- it's nothing more than the <a href="http://www.google.com/support/webmasters/bin/answer.py?hl=en&#038;answer=35769&#038;hola">Google Webmaster Guideline</a> "<em>Don't deceive your users or present different content to search engines than you display to users (...)</em>". It is deceiving to show users a normal link and at the same time tell search engines that you really don't want to link there! In my opinion, if the link is not good enough, the user should be informed. There are two ways to do that.<br />
<span id="more-84"></span><br />
My favorite solution would be for browsers to automatically highlight these kinds of links on all sites. However, I doubt that will happen any time soon... </p>
<p>The other solution would be for websites to highlight their own rel=nofollow'ed links. I am doing that here on this site (for the major, modern browsers at least) - an example can be found in my <a href="http://johnmu.com/policy/nofollow/">linking policy</a>. Links with the rel=nofollow microformat are <span style="border-bottom: dashed 2px #ffa500">underlined</span> and displayed with a <img src="http://johnmu.com/files/nofollow.gif" alt="nofollow symbol" /> small warning symbol. </p>
<p>Adding that to your own site is easy enough - it just requires a small change in your CSS stylesheet and uploading the symbol to your server. </p>
<ol>
<li>Download the symbol: <a href="http://johnmu.com/files/nofollow.gif" title="nofollow symbol" target="_blank"><img src="http://johnmu.com/files/nofollow.gif" alt="nofollow symbol" /></a> (right-click on it and save a local copy of it). Copy it onto your server into the folder where you have your stylesheet file (this depends on your site - on Wordpress it will be in your theme folder)</li>
<li>Open your stylesheet file and add the following lines to the end of the file:
<div class="igBar"><span id="lcss-8"><a href="#" onclick="javascript:showPlainTxt('css-8'); return false;">Select code</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-8">
<div class="css">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">a<span style="color: #66cc66;">&#91;</span>rel~=nofollow<span style="color: #66cc66;">&#93;</span> </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">border-bottom</span>: <span style="color: #993333;">dashed</span> 2px #ffa500;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">background</span>: <span style="color: #993333;">url</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'nofollow.gif'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">center</span> <span style="color: #000000; font-weight: bold;">left</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">padding-left</span>: 17px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p><!-- css-8--></p>
<p>If you have placed the image in a different folder, you need to specify it here. If you with to use a different sized image, make sure you adjust the "padding-left" setting (this makes room for the symbol). If you have an orange background on your site, also make sure that you adjust the color from "#ffa500" to something that contrasts the background (in that case you might also consider changing the colors in the symbol). Upload the stylesheet to your server.</li>
<li>Done!
<p>You should see the changes when you open a new page on the site. In some cases you might have to restart your browser to see the modified stylesheet. </li>
</ol>
<p>Do you think that a global highlighting like this would make some sites take a second look at their policy of adding "rel=nofollow" to all outbound links? Imagine you had an encyclopedia where all references were highlighted as being untrusted <img src='http://johnmu.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . </p>
<hr/>Copyright &copy; 2010 <strong><a href="http://johnmu.com">johnmu.com</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact johnmu.com so we can take legal action immediately.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>]]></content:encoded>
			<wfw:commentRss>http://johnmu.com/highlight-nofollow/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

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