<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Sexy Tooltips with Just CSS</title>
	<atom:link href="http://sixrevisions.com/css/css-only-tooltips/feed/" rel="self" type="application/rss+xml" />
	<link>http://sixrevisions.com/css/css-only-tooltips/</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 01:52:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Paul</title>
		<link>http://sixrevisions.com/css/css-only-tooltips/#comment-139770</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 10 Dec 2011 21:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=3439#comment-139770</guid>
		<description>Nice tutorials thanks.</description>
		<content:encoded><![CDATA[<p>Nice tutorials thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://sixrevisions.com/css/css-only-tooltips/#comment-137756</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Sat, 26 Nov 2011 21:59:06 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=3439#comment-137756</guid>
		<description>For some reason I have added all this info but I am having two problems:

1. The tooltip function only works in my IE 9 browser

2. I am unable to get the rounded corners to work in any browser.

If you could point me in the right direction I would appreciate it.

the website is mypcsolutions.biz</description>
		<content:encoded><![CDATA[<p>For some reason I have added all this info but I am having two problems:</p>
<p>1. The tooltip function only works in my IE 9 browser</p>
<p>2. I am unable to get the rounded corners to work in any browser.</p>
<p>If you could point me in the right direction I would appreciate it.</p>
<p>the website is mypcsolutions.biz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: noRiddle</title>
		<link>http://sixrevisions.com/css/css-only-tooltips/#comment-136248</link>
		<dc:creator>noRiddle</dc:creator>
		<pubDate>Tue, 22 Nov 2011 01:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=3439#comment-136248</guid>
		<description>@Bill B.
With CSS there is unfortunately no way to adapt a tooltip dynamically to all evntualities.
You have to either prevent elements from being positioned near the edge of a page when they have a tooltip assigned (which is not always possible) or position the tooltip e.g. in the center instead of aligning it with the left or right edge of the tooltip containing element.

Since you can&#039;t know the width of the containing element in advance, this is difficult to accomplish of course (percentages refer to the width respectively height of the containing element).

As long as the tooltip container is less or equal wide as the containing element, you don&#039;t have a problem anyway.
So the problem only occurs when the containing element is narrower than the tooltip container, especially when it is a lot narrower.

A possible solution could be to use percentages instead of px for the position.
E.g.:
&lt;code&gt;
.tooltip:hover span {
position: absolute;
left: -50%; /*or right: -50%;*/
top: 110 %;
}
&lt;/code&gt;

But an estimation on how much you have to offset the tooltip container in relation to the containing element is actually vague.
You can only play a bit around and try it out.

noRiddle</description>
		<content:encoded><![CDATA[<p>@Bill B.<br />
With CSS there is unfortunately no way to adapt a tooltip dynamically to all evntualities.<br />
You have to either prevent elements from being positioned near the edge of a page when they have a tooltip assigned (which is not always possible) or position the tooltip e.g. in the center instead of aligning it with the left or right edge of the tooltip containing element.</p>
<p>Since you can&#8217;t know the width of the containing element in advance, this is difficult to accomplish of course (percentages refer to the width respectively height of the containing element).</p>
<p>As long as the tooltip container is less or equal wide as the containing element, you don&#8217;t have a problem anyway.<br />
So the problem only occurs when the containing element is narrower than the tooltip container, especially when it is a lot narrower.</p>
<p>A possible solution could be to use percentages instead of px for the position.<br />
E.g.:<br />
<code><br />
.tooltip:hover span {<br />
position: absolute;<br />
left: -50%; /*or right: -50%;*/<br />
top: 110 %;<br />
}<br />
</code></p>
<p>But an estimation on how much you have to offset the tooltip container in relation to the containing element is actually vague.<br />
You can only play a bit around and try it out.</p>
<p>noRiddle</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill B.</title>
		<link>http://sixrevisions.com/css/css-only-tooltips/#comment-135658</link>
		<dc:creator>Bill B.</dc:creator>
		<pubDate>Sat, 19 Nov 2011 12:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=3439#comment-135658</guid>
		<description>Alexander,

Some great stuff.

I have a question. Is there a way to alter the code below so that when a target is near the right-hand margin, the comment box doesn&#039;t go off screen? If yes, what edits are necessary?


		
		.tooltip {
			color: #000000; outline: none;
			cursor: default; text-decoration: none;
			position: relative;
			background-color: yellow;
			text-indent: 0pt;
		}
		.tooltip span {
			margin-left: -999em;
			position: absolute;
		}
		.tooltip:hover span {
			border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; 
			box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
			font-family: Calibri, Tahoma, Geneva, sans-serif;
			position: absolute; left: 1em; top: 2em; z-index: 99;
			margin-left: 0; width: 250px;
		}
		.tooltip:hover img {
			border: 0; margin: -10px 0 0 -55px;
			float: left; position: absolute;
		}
		.tooltip:hover em {
			font-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold;
			display: block; padding: 0.2em 0 0.6em 0;
		}
		.classic { padding: 0.8em 1em; }
		* html a:hover { background: transparent; }
		.classic {background: #FFFFAA; border: 1px solid #FFAD33; }
		
		

Thanks</description>
		<content:encoded><![CDATA[<p>Alexander,</p>
<p>Some great stuff.</p>
<p>I have a question. Is there a way to alter the code below so that when a target is near the right-hand margin, the comment box doesn&#8217;t go off screen? If yes, what edits are necessary?</p>
<p>		.tooltip {<br />
			color: #000000; outline: none;<br />
			cursor: default; text-decoration: none;<br />
			position: relative;<br />
			background-color: yellow;<br />
			text-indent: 0pt;<br />
		}<br />
		.tooltip span {<br />
			margin-left: -999em;<br />
			position: absolute;<br />
		}<br />
		.tooltip:hover span {<br />
			border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px;<br />
			box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);<br />
			font-family: Calibri, Tahoma, Geneva, sans-serif;<br />
			position: absolute; left: 1em; top: 2em; z-index: 99;<br />
			margin-left: 0; width: 250px;<br />
		}<br />
		.tooltip:hover img {<br />
			border: 0; margin: -10px 0 0 -55px;<br />
			float: left; position: absolute;<br />
		}<br />
		.tooltip:hover em {<br />
			font-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold;<br />
			display: block; padding: 0.2em 0 0.6em 0;<br />
		}<br />
		.classic { padding: 0.8em 1em; }<br />
		* html a:hover { background: transparent; }<br />
		.classic {background: #FFFFAA; border: 1px solid #FFAD33; }</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fil</title>
		<link>http://sixrevisions.com/css/css-only-tooltips/#comment-134616</link>
		<dc:creator>Fil</dc:creator>
		<pubDate>Mon, 07 Nov 2011 17:58:37 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=3439#comment-134616</guid>
		<description>Thanks a lot but I have the same problem than tommy.the tooltip appear behind other think.
I use wordpress for my website.
Someone can help me ?</description>
		<content:encoded><![CDATA[<p>Thanks a lot but I have the same problem than tommy.the tooltip appear behind other think.<br />
I use wordpress for my website.<br />
Someone can help me ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane</title>
		<link>http://sixrevisions.com/css/css-only-tooltips/#comment-132717</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Sun, 23 Oct 2011 05:35:02 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=3439#comment-132717</guid>
		<description>Nice tutorial!

It is possible to create a delay very easily using transitioning effects in CSS3. They should be applied to the tooltip&#039;s main CSS rule (.tooltip).
In your CSS for the tooltip, I saw you added a great margin to the tooltip. I believe this is out-right wrong, and I would personally use the &#039;display&#039; value instead.
Such would be achieved like:

(prepend removed)
transition: display 0s linear 1s;

This would be an immediate transition after 1 second.
If you wanted it to fade in, you would be able to use the opacity rule as well, as follows:

transition: display 0s linear 1s;
transition: opacity 2s ease-in-out 1s;

The element is hidden with an opacity of 0 to begin with. In the hover psuedo-element it is:
 display:block; opacity: 1;

By doing the above two rules, the display element is removed completely then as the opacity would be 0 in the tooltip element, it will begin its fade-in after 1 second. It will take 2 seconds to fade in.
Hope someone may find this useful!

Shane Thompson</description>
		<content:encoded><![CDATA[<p>Nice tutorial!</p>
<p>It is possible to create a delay very easily using transitioning effects in CSS3. They should be applied to the tooltip&#8217;s main CSS rule (.tooltip).<br />
In your CSS for the tooltip, I saw you added a great margin to the tooltip. I believe this is out-right wrong, and I would personally use the &#8216;display&#8217; value instead.<br />
Such would be achieved like:</p>
<p>(prepend removed)<br />
transition: display 0s linear 1s;</p>
<p>This would be an immediate transition after 1 second.<br />
If you wanted it to fade in, you would be able to use the opacity rule as well, as follows:</p>
<p>transition: display 0s linear 1s;<br />
transition: opacity 2s ease-in-out 1s;</p>
<p>The element is hidden with an opacity of 0 to begin with. In the hover psuedo-element it is:<br />
 display:block; opacity: 1;</p>
<p>By doing the above two rules, the display element is removed completely then as the opacity would be 0 in the tooltip element, it will begin its fade-in after 1 second. It will take 2 seconds to fade in.<br />
Hope someone may find this useful!</p>
<p>Shane Thompson</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Norja</title>
		<link>http://sixrevisions.com/css/css-only-tooltips/#comment-131383</link>
		<dc:creator>Norja</dc:creator>
		<pubDate>Fri, 14 Oct 2011 04:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=3439#comment-131383</guid>
		<description>I think this is great! Thank you for sharing!</description>
		<content:encoded><![CDATA[<p>I think this is great! Thank you for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: René</title>
		<link>http://sixrevisions.com/css/css-only-tooltips/#comment-130849</link>
		<dc:creator>René</dc:creator>
		<pubDate>Tue, 11 Oct 2011 03:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=3439#comment-130849</guid>
		<description>Here there is an exemple of possible way with non obstrusive html markup. I agree that Javascript do it really well. But some website has so much jquery on that when you remove them it&#039;s the uglier website ever seen. It&#039;s like a beautiful girl that gives you a bad surprise later in the bed. 
Go take a look http://beta.rdsign.net/code/article_16 really simple tooltip but no extra html markup, but for sure it will not work everywhere.</description>
		<content:encoded><![CDATA[<p>Here there is an exemple of possible way with non obstrusive html markup. I agree that Javascript do it really well. But some website has so much jquery on that when you remove them it&#8217;s the uglier website ever seen. It&#8217;s like a beautiful girl that gives you a bad surprise later in the bed.<br />
Go take a look <a href="http://beta.rdsign.net/code/article_16" rel="nofollow">http://beta.rdsign.net/code/article_16</a> really simple tooltip but no extra html markup, but for sure it will not work everywhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karl</title>
		<link>http://sixrevisions.com/css/css-only-tooltips/#comment-127777</link>
		<dc:creator>karl</dc:creator>
		<pubDate>Sun, 02 Oct 2011 16:18:25 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=3439#comment-127777</guid>
		<description>I don&#039;t need to appear the tooltips immediately. I don&#039;t know how to make some delayed appearing of tooltips. I would appreciate delay from 0,5 to 1 second. Thanks for any suggestions.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t need to appear the tooltips immediately. I don&#8217;t know how to make some delayed appearing of tooltips. I would appreciate delay from 0,5 to 1 second. Thanks for any suggestions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://sixrevisions.com/css/css-only-tooltips/#comment-120832</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Tue, 13 Sep 2011 13:55:08 +0000</pubDate>
		<guid isPermaLink="false">http://sixrevisions.com/?p=3439#comment-120832</guid>
		<description>Excellent article! I have a problem. I copied and pasted the source in a new page of Expression Web and when I preview the page in IE9, I can see the tooltips but squared - without the rounded corners and without the shadow. What could be the problem? Thanks.</description>
		<content:encoded><![CDATA[<p>Excellent article! I have a problem. I copied and pasted the source in a new page of Expression Web and when I preview the page in IE9, I can see the tooltips but squared &#8211; without the rounded corners and without the shadow. What could be the problem? Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

