<?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>SixCrayons &#187; Rob Such</title>
	<atom:link href="http://sixcrayons.com/author/robsuch/feed/" rel="self" type="application/rss+xml" />
	<link>http://sixcrayons.com</link>
	<description>non-toxic designing</description>
	<lastBuildDate>Mon, 12 Apr 2010 14:33:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Creating CSS based Tooltips</title>
		<link>http://sixcrayons.com/2009/11/05/creating-definition-pop-ups-just-using-css/</link>
		<comments>http://sixcrayons.com/2009/11/05/creating-definition-pop-ups-just-using-css/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 20:04:53 +0000</pubDate>
		<dc:creator>Rob Such</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[tooltips]]></category>

		<guid isPermaLink="false">http://sixcrayons.com/?p=1620</guid>
		<description><![CDATA[Have you ever wanted to have definition pop-ups on your website but have never been brave enough to attempt the jQuery that would be [...]]]></description>
			<content:encoded><![CDATA[<p class="first">Have you ever wanted to have definition pop-ups on your website but have never been brave enough to attempt the jQuery that would be needed? Well I needed to do this just yesterday and thought there must be an easier way&#8230;</p>
<p>Well I have found a way to achieve this by <strong>just using CSS</strong>! Yep, just CSS. This is done by having a span that is hidden inside your &#8216;a&#8217; element. Then on hover of your &#8216;a&#8217; you just simply show the content of the span. All you then have left to do is position your span on your page and style it up however you like. Below is the code to achieve this&#8230;</p>
<p>Your &#8216;a&#8217; element needs to look like this :</p>
<pre><a href="#">Title <span>This is the tooltip</span></a></pre>
<p>And the style needs to look something like this:</p>
<pre>a {
	z-index:10;
}
a:hover {
	position:relative;
	z-index:100;
}
a span {
	display:none;
}
a:hover span {
	display:block;
	position:absolute;
	float:left;
	white-space:nowrap;
	top:.5em;
	left:.5em;
	background:#fffcd1;
	border:1px solid #444;
	color:#444;
	padding:1px 5px;
	z-index:10;
}</pre>
<div id="attachment_1627" class="wp-caption alignleft" style="width: 205px"><img class="size-full wp-image-1627 " src="http://sixcrayons.com/files/2009/11/tooltip.jpg" alt="Tool Tip" width="195" height="156" /><p class="wp-caption-text">CSS Tooltip</p></div>
<p>Although the negative to using this technique is that Google would see this as anchor text so it would associate this with the link. This could potentially water down your keywords on the page this is running on! So as with all techniques this needs to be used with consideration to whether it is the right solution for the situation?</p>
<p>Well guys I hope this helps solve a problem as it really did help me out.</p>
<p><em>PS &#8211; Please be nice as this is my first post on Six Crayons!</em></p>
<p>Toodles&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://sixcrayons.com/2009/11/05/creating-definition-pop-ups-just-using-css/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

