<?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>Oncemade &#187; progressive enrichment</title>
	<atom:link href="http://oncemade.com/tag/progressive-enrichment/feed/" rel="self" type="application/rss+xml" />
	<link>http://oncemade.com</link>
	<description>Design, Web Dev, Inspiration</description>
	<lastBuildDate>Fri, 09 Jul 2010 02:06:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>CSS Tooltip</title>
		<link>http://oncemade.com/css-tooltip/</link>
		<comments>http://oncemade.com/css-tooltip/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 07:56:23 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[progressive enrichment]]></category>
		<category><![CDATA[tooltip]]></category>

		<guid isPermaLink="false">http://oncemade.com/?p=895</guid>
		<description><![CDATA[Here is how to create a very basic tooltip using only CSS. I've been using this technique all over my [...]]]></description>
			<content:encoded><![CDATA[<p>Here is how to create a very basic tooltip using only CSS. I've been using this technique all over my latest project.</p>
<p>Let's start by creating the following markup:</p>

<pre><h4>Markup</h4><code>&lt;a href=&quot;http://www.example.com&quot; class=&quot;tooltip&quot;&gt;
 My Link 
 &lt;span&gt;Cool tooltip&lt;small&gt;&lt;/small&gt;&lt;/span&gt;
&lt;/a&gt;</code>
</pre>
<pre><h4>CSS</h4><code>.tooltip { position: relative; }
.tooltip span {
  position: absolute;
  right: 0;
  top: -35px;
  display: none;
  min-width: 50px;
  padding: 3px 8px;
  white-space: nowrap;
  font-size: 11px;
  text-align: center;
  background-color: rgba(0,0,0,.8);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}
.tooltip span small {
  position: absolute;
  right: 10px;
  bottom: -6px;
  border-top: 6px solid rgba(0,0,0,.8);
  border-left: 6px solid transparent;
}
.tooltip:hover span { display: block; }</code>
</pre>

<p><a href="http://oncemade.com/the-right-way-to-declare-rgba-colors/" title="The Right Way to Declare RGBa Colors | Oncemade">As I mentioned in a previous article</a>, <abbr title="Internet Explorer">IE</abbr> doesn't support RGBa. Adding the following styles, wrapped in a conditional comment, will make it work.</p>

<pre><h4>IE CSS</h4><code>.tooltip span { background-color: #000; }
.tooltip span small { border-top: 6px solid #000; }</code>
<h4>IE 6 Tooltip Arrow Fix</h4><code>*html .tooltip span small { 
  border-left: 6px solid #363636; /* Match the color of the background */
} </code>
</pre>

<p>For more info about creating speech bubble using only CSS, go to <a href="http://desandro.com/resources/css-speech-bubble-icon" title="David DeSandro: CSS Speech Bubble Icon">DeSandro's tutorial on creating speech bubble.</a></p>

<h3>Demo</h3>
<p>
	<a href="#" class="tooltip">My Link <span>Cool Tooltip<small></small></span></a><br />
	<a href="#" class="tooltip">Long Tip Test <span>Very Long Tooltip Test Very Long Tooltip Test<small></small></span></a>
</p>]]></content:encoded>
			<wfw:commentRss>http://oncemade.com/css-tooltip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Right Way to Declare RGBa Colors</title>
		<link>http://oncemade.com/the-right-way-to-declare-rgba-colors/</link>
		<comments>http://oncemade.com/the-right-way-to-declare-rgba-colors/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 06:55:34 +0000</pubDate>
		<dc:creator>Rodrigo</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[css 3]]></category>
		<category><![CDATA[progressive enrichment]]></category>
		<category><![CDATA[rgba]]></category>

		<guid isPermaLink="false">http://oncemade.com/?p=625</guid>
		<description><![CDATA[The most efficient way to declare RGBa values and don't mess up the CSS. ]]></description>
			<content:encoded><![CDATA[<p>One of the best progressive enrichment that I use on my projects is to set colors as <abbr title="Red, Green, Blue, and Alpha"><em>RGBa</em></abbr> (red, green, blue, alpha) values. As I write this, <abbr title="Red, Green, Blue, and Alpha"><em>RGBa</em></abbr> is current supported in firefox 3.0.5+, Safari 2+, Chrome 1+, and Opera 10+.</p>  <p>The most efficient way that I found to declare <abbr title="Red, Green, Blue, and Alpha"><em>RGBa</em></abbr> values is to separate the flat colors into code block, and keeping <abbr title="Red, Green, Blue, and Alpha"><em>RGBa</em></abbr> with the other styles. Like in this example:</p>  <pre><h4>CSS</h4><code>/* NON RGBa BROWSERS
  ------------------------------------------------------ */
#wrap { background-color: #000; }
#footer,
#header { background-color: #ccc; }
.section { color: #fff; }

/* HEADER
  ------------------------------------------------------ */
#header { background-color: rgba(204,204,204,.8); }
#header ul { float: right; }
#header li {
  float: left;
  margin-left: 1em;
}
#header li:first-child { margin-left: 0; }

/* WRAP
  ------------------------------------------------------ */
#wrap {
  width: 960px;
  margin: 0 auto;
  background-color: (0,0,0,.7);
}
.section {
  padding: 1em;
  color: rgba(255,255,255,.9);
}
</code></pre>
<p>I always keep the flat colors separated because they can be easily removed when the other browsers start supporting <em>RGBa</em>. Why didn't I declare the <em>HEX</em> colors on the same line as the <em>RGBa</em>? Simple! <em>IE</em> doesn't support it; no color will be rendered at all. <strong>Note: Please be aware that the <abbr title="Red, Green, Blue, and Alpha"><em>RGBa</em></abbr> colors have to be the last ones declared.</strong></p>
<span id="more-625"></span>
<pre><h4>DOESN'T WORK IN IE</h4><code>/* HEADER
  ------------------------------------------------------ */
#header {
  background-color: #ccc;
  background-color: rgba(204,204,204,.8);
}</code></pre>
<p>Last but not least, when I use border's shorthand syntax, I declare it with the flat colors first, and then <em>border-color</em> afterward. See the example bellow for better understanding.</p>
<pre><h4>CSS</h4><code>/* NON RGBa BROWSERS
  ------------------------------------------------------ */
#header { border: 1px solid #000; }

/* HEADER
  ------------------------------------------------------ */
#header { border-color: rgba(0,0,0,.7); }
</code></pre>
<div>
Just a few examples of website using <abbr title="Red, Green, Blue, and Alpha"><em>RGBa</em></abbr> colors:
<ul>  <li><a href="http://forabeautifulweb.com/" title="Web design and development training workshops for web designers and developers | For A Beautiful Web">For A Beautiful Web</a> - Crafted by <a href="http://www.stuffandnonsense.co.uk/" title="Stuff and Nonsense | Creative web site design specialists based in North Wales, UK">Andy Clarke</a></li>  <li><a href="http://tweetcc.com/" title="tweetCC | Publish &#038; license tweets with Creative Commons">TweetCC</a> - Crafted by <a href="http://www.stuffandnonsense.co.uk/" title="Stuff and Nonsense | Creative web site design specialists based in North Wales, UK">Andy Clarke</a></li>  <li><a href="http://designertweet.com/" title="Designer Tweet">Designer Tweet</a> - My latest case study website.</li>  <li><a href="http://simplebits.com/" title="SimpleBits">SimpleBits - Crafted by Dan Cederholm</a></li>
</ul>
</div>
<div  class="update">
<h4>Update</h4>
For more information and details about <em>RGBa</em>, please visit the following:
<ul>
<li><a href="http://www.timkadlec.com/post.asp?q=61">Not As Clear As It Seems: CSS3 Opacity and RGBA</a></li>
<li><a href="http://forabeautifulweb.com/blog/about/is_css3_rgba_ready_to_rock/">Is CSS3 RGBa ready to rock? </a></li>
</ul>
</div>
<h4>Browser Support</h4>
<ul class="browserComp clearfix">  <li class="firefoxComp"><span>Firefox 3.0+</span></li>  <li class="safariComp"><span>Safari 3.0+</span></li>  <li class="chromeComp"><span>Chrome 1+</span></li>  <li class="operaComp"><span>Opera 10+</span></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://oncemade.com/the-right-way-to-declare-rgba-colors/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
