<?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>RedTeamDesign</title>
	<atom:link href="http://www.red-team-design.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.red-team-design.com</link>
	<description>CSS tips and tricks</description>
	<lastBuildDate>Tue, 31 Jan 2012 06:00:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>CSS3 &amp; jQuery folder tabs</title>
		<link>http://www.red-team-design.com/css3-jquery-folder-tabs</link>
		<comments>http://www.red-team-design.com/css3-jquery-folder-tabs#comments</comments>
		<pubDate>Tue, 31 Jan 2012 06:00:19 +0000</pubDate>
		<dc:creator>Red</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.red-team-design.com/?p=4230</guid>
		<description><![CDATA[Ever since I started working for one of my CSS3 breadcrumbs example, I thought about writing this tutorial. In this article, I will use a similar technique in order to create some good looking CSS3 tabs. While in my previous CSS3 tabs tutorial I tried to simulate some beveled corners for the tabs, this time [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since I started working for one of my <a href="http://www.red-team-design.com/css3-breadcrumbs">CSS3 breadcrumbs</a> example, I thought about writing this tutorial. In this article, I will use a similar technique in order to create some good looking CSS3 tabs.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-jquery-folder-tabs.png" alt="" title="CSS3 &amp; jQuery folder tabs - preview" width="600" height="200" class="aligncenter size-full wp-image-4238" /></p>
<p><span id="more-4230"></span></p>
<p>While in my previous <a href="http://www.red-team-design.com/css3-tabs-with-beveled-corners">CSS3 tabs tutorial</a> I tried to simulate some beveled corners for the tabs, this time I will show you how to <strong>create folder tabs</strong> using nothing more than pure CSS3.</p>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-jquery-folder-tabs.html">View demo</a>
</p>
<h3>The HTML</h3>
<p>The markup is self explanatory. While the <code>title</code> attributes might seem to be extra, in this case they are needed for the jQuery stuff.</p>
<pre class="prettyprint">
&lt;ul id="tabs"&gt;
    &lt;li&gt;&lt;a href="#" title="tab1"&gt;One&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#" title="tab2"&gt;Two&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#" title="tab3"&gt;Three&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#" title="tab4"&gt;Four&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div id="content"&gt;
    &lt;div id="tab1"&gt;...&lt;/div&gt;
    &lt;div id="tab2"&gt;...&lt;/div&gt;
    &lt;div id="tab3"&gt;...&lt;/div&gt;
    &lt;div id="tab4"&gt;...&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>So, here are the ingredients:</p>
<ul>
<li><code>#tabs</code> &#8211; an unordered list that holds the tab navigation items.</li>
<li><code>#content</code> &#8211; a wrapper for each tab content.</li>
</ul>
<h3>The CSS</h3>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-tabs-technique.png" alt="" title="CSS3 tabs technique" width="600" height="200" class="aligncenter size-full wp-image-4242" /></p>
<p>Below you&#8217;ll find the CSS lines necessary for creating these tabs. Also, the demo source contains all the prefixed CSS3 properties.</p>
<pre class="prettyprint">
#tabs{
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

#tabs li{
  float: left;
  margin: 0 .5em 0 0;
}

#tabs a{
  position: relative;
  background: #ddd;
  background-image: linear-gradient(to bottom, #fff, #ddd);
  padding: .7em 3.5em;
  float: left;
  text-decoration: none;
  color: #444;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
  border-radius: 5px 0 0 0;
  box-shadow: 0 2px 2px rgba(0,0,0,.4);
}

#tabs a:hover,
#tabs a:hover::after,
#tabs a:focus,
#tabs a:focus::after{
  background: #fff;
}

#tabs a:focus{
  outline: 0;
}

#tabs a::after{
  content:'';
  position:absolute;
  z-index: 1;
  top: 0;
  right: -.5em;
  bottom: 0;
  width: 1em;
  background: #ddd;
  background-image: linear-gradient(to bottom, #fff, #ddd);
  box-shadow: 2px 2px 2px rgba(0,0,0,.4);
  transform: skew(10deg);
  border-radius: 0 5px 0 0;
}

#tabs #current a,
#tabs #current a::after{
  background: #fff;
  z-index: 3;
}

#content
{
    background: #fff;
    padding: 2em;
    height: 220px;
    position: relative;
    z-index: 2;
    border-radius: 0 5px 5px 5px;
    box-shadow: 0 -2px 3px -2px rgba(0, 0, 0, .5);
}
</pre>
<h3>The jQuery</h3>
<p>There is nothing to add here, it&#8217;s similar to my previous tabs article.</p>
<pre class="prettyprint">
&lt;script src="http://code.jquery.com/jquery-1.6.3.min.js"&gt;&lt;/script&gt;
&lt;script&gt;
$(document).ready(function() {
	$("#content div").hide(); // Initially hide all content
	$("#tabs li:first").attr("id","current"); // Activate first tab
	$("#content div:first").fadeIn(); // Show first tab content

    $('#tabs a').click(function(e) {
        e.preventDefault();
        $("#content div").hide(); //Hide all content
        $("#tabs li").attr("id",""); //Reset id's
        $(this).parent().attr("id","current"); // Activate this
        $('#' + $(this).attr('title')).fadeIn(); // Show content for current tab
    });
})();
&lt;/script&gt;
</pre>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-jquery-folder-tabs.html">View demo</a>
</p>
<h3>The end (of this tutorial)</h3>
<p>This is just another small example that shows the <strong>CSS3 awesomeness</strong>. Everything is great also for older browsers, the tabs <strong>degrade nice</strong>. </p>
<p>So, having said that, I hope you liked this article and <strong>thanks for reading</strong> it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-team-design.com/css3-jquery-folder-tabs/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>CSS3 breadcrumbs</title>
		<link>http://www.red-team-design.com/css3-breadcrumbs</link>
		<comments>http://www.red-team-design.com/css3-breadcrumbs#comments</comments>
		<pubDate>Tue, 24 Jan 2012 06:00:48 +0000</pubDate>
		<dc:creator>Red</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.red-team-design.com/?p=4189</guid>
		<description><![CDATA[A breadcrumb navigation allow users to know where they are in a hierarchical structure and navigate back to higher-level pages in the hierarchy. Also, the breadcrumbs can reduce the number of actions a user need to perform in order to navigate back. So, to keep it simple, if you have a website with lot of [...]]]></description>
			<content:encoded><![CDATA[<p>A breadcrumb navigation allow users to know where they are in a hierarchical structure and navigate back to higher-level pages in the hierarchy. Also, the breadcrumbs can reduce the number of actions a user need to perform in order to navigate back.</p>
<p>So, to keep it simple, if you have a website with lot of pages and sub-levels, in order to increase <a href="http://www.red-team-design.com/web-usability-tips-for-your-website">usability</a>, you need to use breadcrumbs. Having said that, today you&#8217;ll learn how to create your own cool CSS3 breadcrumbs.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-breadcrumbs.png" alt="" title="CSS3 breadcrumbs" width="600" height="200" class="aligncenter size-full wp-image-4197" /></p>
<p><span id="more-4189"></span></p>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-breadcrumbs-demo.html">View demo</a>
</p>
<h3>The HTML</h3>
<p>Tha markup is simple and minimal, based on an unordered list.</p>
<pre class="prettyprint">
&lt;ul id="breadcrumbs-one"&gt;
    &lt;li&gt;&lt;a href=""&gt;Lorem ipsum&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=""&gt;Vivamus nisi eros&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=""&gt;Nulla sed lorem risus&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=""&gt;Nam iaculis commodo&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="" class="current"&gt;Current crumb&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
<h3>The CSS</h3>
<p>First, let&#8217;s add a mini <a href="http://www.red-team-design.com/useful-css-snippets-to-save-your-time">CSS reset</a> for our unordered lists:</p>
<pre class="prettyprint">
ul{
  margin: 0;
  padding: 0;
  list-style: none;
}
</pre>
<p>Secondly, I&#8217;d like to add that all the breadcrumbs I made for this tutorial are using <a href="http://www.red-team-design.com/before-after-pseudo-elements">CSS pseudo-elements</a>. I bet there&#8217;s no need to specify what pseudo-elements are and <a href="http://www.red-team-design.com/just-another-awesome-css3-buttons">how</a> <a href="http://www.red-team-design.com/cool-headings-with-pseudo-elements">cool</a> <a href="http://www.red-team-design.com/css3-dropdown-menu">they</a> <a href="http://www.red-team-design.com/how-to-create-slick-effects-with-css3-box-shadow">are</a>.</p>
<h4>First example</h4>
<p>Here I used a similar technique to the one I used for creating these <a href="http://www.red-team-design.com/css3-tooltips">CSS3 tooltips</a>. Basically, to create a right-bordered triangle effect, the triangles created with pseudo-elements are placed one above another. The darker triangle will be shifted a bit in order to achieve the <em>border</em>.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-breadcrumbs-1.png" alt="" title="CSS3 breadcrumbs - first example" width="600" height="200" class="aligncenter size-full wp-image-4209" /></p>
<pre class="prettyprint">
#breadcrumbs-one{
  background: #eee;
  border-width: 1px;
  border-style: solid;
  border-color: #f5f5f5 #e5e5e5 #ccc;
  border-radius: 5px;
  box-shadow: 0 0 2px rgba(0,0,0,.2);
  overflow: hidden;
  width: 100%;
}

#breadcrumbs-one li{
  float: left;
}

#breadcrumbs-one a{
  padding: .7em 1em .7em 2em;
  float: left;
  text-decoration: none;
  color: #444;
  position: relative;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  background-color: #ddd;
  background-image: linear-gradient(to right, #f5f5f5, #ddd);
}

#breadcrumbs-one li:first-child a{
  padding-left: 1em;
  border-radius: 5px 0 0 5px;
}

#breadcrumbs-one a:hover{
  background: #fff;
}

#breadcrumbs-one a::after,
#breadcrumbs-one a::before{
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -1.5em;
  border-top: 1.5em solid transparent;
  border-bottom: 1.5em solid transparent;
  border-left: 1em solid;
  right: -1em;
}

#breadcrumbs-one a::after{
  z-index: 2;
  border-left-color: #ddd;
}

#breadcrumbs-one a::before{
  border-left-color: #ccc;
  right: -1.1em;
  z-index: 1;
}

#breadcrumbs-one a:hover::after{
  border-left-color: #fff;
}

#breadcrumbs-one .current,
#breadcrumbs-one .current:hover{
  font-weight: bold;
  background: none;
}

#breadcrumbs-one .current::after,
#breadcrumbs-one .current::before{
  content: normal;
}
</pre>
<h4>Second example</h4>
<p>The CSS shapes built with the pseudo-elements are placed before, respectively after.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-breadcrumbs-2.png" alt="" title="CSS3 breadcrumbs - second example" width="600" height="200" class="aligncenter size-full wp-image-4210" /></p>
<pre class="prettyprint">
#breadcrumbs-two{
  overflow: hidden;
  width: 100%;
}

#breadcrumbs-two li{
  float: left;
  margin: 0 .5em 0 1em;
}

#breadcrumbs-two a{
  background: #ddd;
  padding: .7em 1em;
  float: left;
  text-decoration: none;
  color: #444;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  position: relative;
}

#breadcrumbs-two a:hover{
  background: #99db76;
}

#breadcrumbs-two a::before{
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -1.5em;
  border-width: 1.5em 0 1.5em 1em;
  border-style: solid;
  border-color: #ddd #ddd #ddd transparent;
  left: -1em;
}

#breadcrumbs-two a:hover::before{
  border-color: #99db76 #99db76 #99db76 transparent;
}

#breadcrumbs-two a::after{
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -1.5em;
  border-top: 1.5em solid transparent;
  border-bottom: 1.5em solid transparent;
  border-left: 1em solid #ddd;
  right: -1em;
}

#breadcrumbs-two a:hover::after{
  border-left-color: #99db76;
}

#breadcrumbs-two .current,
#breadcrumbs-two .current:hover{
  font-weight: bold;
  background: none;
}

#breadcrumbs-two .current::after,
#breadcrumbs-two .current::before{
  content: normal;
}
</pre>
<h4>Third example</h4>
<p>Using <code>border-radius</code> we will round the corners for our rectangle and square shapes. The square will be rotated, in order to achieve a rounded diamond.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-breadcrumbs-3.png" alt="" title="CSS3 breadcrumbs - third example" width="600" height="200" class="aligncenter size-full wp-image-4211" /></p>
<pre class="prettyprint">
#breadcrumbs-three{
  overflow: hidden;
  width: 100%;
}

#breadcrumbs-three li{
  float: left;
  margin: 0 2em 0 0;
}

#breadcrumbs-three a{
  padding: .7em 1em .7em 2em;
  float: left;
  text-decoration: none;
  color: #444;
  background: #ddd;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  border-radius: .4em 0 0 .4em;
}

#breadcrumbs-three a:hover{
  background: #abe0ef;
}

#breadcrumbs-three a::after{
  background: #ddd;
  content: "";
  height: 2.5em;
  margin-top: -1.25em;
  position: absolute;
  right: -1em;
  top: 50%;
  width: 2.5em;
  z-index: -1;
  transform: rotate(45deg);
  border-radius: .4em;
}

#breadcrumbs-three a:hover::after{
  background: #abe0ef;
}

#breadcrumbs-three .current,
#breadcrumbs-three .current:hover{
  font-weight: bold;
  background: none;
}

#breadcrumbs-three .current::after{
  content: normal;
}
</pre>
<h4>Fourth example</h4>
<p>Again, with the pseudo-elements you&#8217;ll add two rectangles before and after the element. Then you&#8217;ll round the outer sides for each one. The rest is nothing but poetry. :)</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-breadcrumbs-4.png" alt="" title="CSS3 breadcrumbs - fourth example" width="600" height="200" class="aligncenter size-full wp-image-4212" /></p>
<pre class="prettyprint">
#breadcrumbs-four{
  overflow: hidden;
  width: 100%;
}

#breadcrumbs-four li{
  float: left;
  margin: 0 .5em 0 1em;
}

#breadcrumbs-four a{
  background: #ddd;
  padding: .7em 1em;
  float: left;
  text-decoration: none;
  color: #444;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  position: relative;
}

#breadcrumbs-four a:hover{
  background: #efc9ab;
}

#breadcrumbs-four a::before,
#breadcrumbs-four a::after{
  content:'';
  position:absolute;
  top: 0;
  bottom: 0;
  width: 1em;
  background: #ddd;
  transform: skew(-10deg);
}

#breadcrumbs-four a::before{

  left: -.5em;
  border-radius: 5px 0 0 5px;
}

#breadcrumbs-four a:hover::before{
  background: #efc9ab;
}

#breadcrumbs-four a::after{
  right: -.5em;
  border-radius: 0 5px 5px 0;
}

#breadcrumbs-four a:hover::after{
  background: #efc9ab;
}

#breadcrumbs-four .current,
#breadcrumbs-four .current:hover{
  font-weight: bold;
  background: none;
}

#breadcrumbs-four .current::after,
#breadcrumbs-four .current::before{
  content: normal;
}
</pre>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-breadcrumbs-demo.html">View demo</a>
</p>
<h3>CSS3 breadcrumbs advantages</h3>
<ul>
<li>No images, so it&#8217;s easy to update and maintain.</li>
<li>Everything is scalable, em based.</li>
<li>Contains fallbacks for older browsers.</li>
</ul>
<h3>Final words</h3>
<p>I didn&#8217;t merged the common styles for the above breadcrumbs with a purpose. I thought that if you need a certain breadcrumbs style, just copy&#038;paste that, without other CSS inheritances issues.</p>
<p>Thank you for reading and I hope you liked this tutorial. Have any questions or just want to share your thoughts? Feel free to <strong>leave a comment</strong>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-team-design.com/css3-breadcrumbs/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Cool headings with pseudo-elements</title>
		<link>http://www.red-team-design.com/cool-headings-with-pseudo-elements</link>
		<comments>http://www.red-team-design.com/cool-headings-with-pseudo-elements#comments</comments>
		<pubDate>Mon, 16 Jan 2012 06:00:46 +0000</pubDate>
		<dc:creator>Red</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.red-team-design.com/?p=4152</guid>
		<description><![CDATA[Whether you&#8217;re designing a website or a web application, you&#8217;ll need custom styles for headings like h1 or h2. In this article you&#8217;ll learn how to create some cool headings effects using CSS pseudo-elements. View demo Introduction So, why pseudo-elements? The answer is very simple: there is no need to add extra markup. This fit [...]]]></description>
			<content:encoded><![CDATA[<p>Whether you&#8217;re designing a website or a web application, you&#8217;ll need custom styles for headings like <code>h1</code> or <code>h2</code>. In this article you&#8217;ll learn how to create some cool headings effects using CSS pseudo-elements.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/cool-headings-with-pseudo-elements.jpg" alt="" title="Cool headings with pseudo-elements" width="600" height="200" class="aligncenter size-full wp-image-4180" /></p>
<p><span id="more-4152"></span></p>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2012/01/cool-headings-with-pseudo-elements-demo.html">View demo</a>
</p>
<h3>Introduction</h3>
<p>So, why <a href="http://www.red-team-design.com/before-after-pseudo-elements">pseudo-elements</a>? The answer is very simple: there is no need to add extra markup. This fit perfectly for the heading we&#8217;re going to create here.</p>
<h3>The HTML</h3>
<pre class="prettyprint">
&lt;h1 class="headline1"&gt;I took lessons&lt;/h1&gt;
</pre>
<p>As you can see above, there is no rocket science here. Just a simple HTML heading with a CSS class that will properly style it. All the other headings use a similar HTML structure, so it can&#8217;t easier than that.</p>
<pre class="prettyprint">
&lt;link href='http://fonts.googleapis.com/css?family=Droid+Sans:700' rel='stylesheet' type='text/css'&gt;
</pre>
<p>Also, for this demo, we&#8217;ll use a <a href="www.red-team-design.com/google-font-api-and-typekit-solutions-vs-font-face">Google custom font</a>.</p>
<h3>The CSS</h3>
<p>Further, we&#8217;ll use the <code>body</code> as our main wrapper:</p>
<pre class="prettyprint">
body{
	width: 60%;
	margin: 50px auto;
	padding: 15px;
	position: relative; /*needed for heading4 rule*/
	z-index: 0; /* again, just for heading4 rule*/
	border: 7px solid #cecece;
	border: 7px solid rgba(0,0,0,.05);
	background: #fff;
	<mark>background-clip: padding-box;</mark>
	box-shadow: 0 0 2px rgba(0, 0, 0, .5);
}

h1{
	font-family: 'Droid Sans', sans-serif;
	font-size: 22px;
}
</pre>
<p>Noticed the <code>background-clip: padding-box</code> declaration? This will help you achieve a cool effect: <strong>transparent borders</strong> for the main wrapper. Basically, the <code><a href="https://developer.mozilla.org/en/CSS/background-clip">background-clip</a></code> CSS property specifies whether an element&#8217;s background, either the color or image, extends underneath its border.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/cool-headings-with-pseudo-elements-transparent-border.jpg" alt="" title="Transparent border" width="600" height="200" class="aligncenter size-full wp-image-4162" /><br />
<em>Browser support for background-clip: Safari 5+, Chrome 7+, Firefox 3.6+, Opera 10+, IE 9+ </em></p>
<h3>Headline 1</h3>
<p>Below is a simple and good looking effect made using CSS <code>border</code> property:</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css-heading-1.jpg" alt="" title="CSS heading 1" width="600" height="200" class="aligncenter size-full wp-image-4165" /></p>
<pre class="prettyprint">
.headline1 {
	border-bottom: 1px dashed #aaa;
	border-left: 7px solid #aaa;
	border-left: 7px solid rgba(0,0,0,.2);
	margin: 0 -15px 15px -22px;
	padding: 5px 15px;
}
</pre>
<h3>Headline 2</h3>
<p>This style is made using a CSS triangle shape, you&#8217;ve seen this before <a href="http://www.red-team-design.com/css3-animated-dropdown-menu">here</a>:</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css-heading-2.jpg" alt="" title="CSS heading 2" width="600" height="200" class="aligncenter size-full wp-image-4166" /></p>
<pre class="prettyprint">
.headline2 {
	border-bottom: 1px solid #aaa;
	margin: 15px 0;
	padding: 5px 0;
	position: relative;
}

.headline2:before,
.headline2:after{
	content: '';
	border-right: 20px solid #fff;
	border-top: 15px solid #aaa;
	bottom: -15px;
	position: absolute;
	left: 25px;
}

.headline2:after{
	border-top-color: #fff;
	border-right-color: transparent;
	bottom: -13px;
	left: 26px;
}
</pre>
<h3>Headline 3</h3>
<p>The below HTML heading style is created using the <a href="http://www.red-team-design.com/css-ribbons">ribbon</a> effect:</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css-heading-3.jpg" alt="" title="CSS heading 3" width="600" height="200" class="aligncenter size-full wp-image-4168" /></p>
<pre class="prettyprint">
.headline3{
  position: relative;
  margin-left: -22px; /* 15px padding + 7px border ribbon shadow*/
  margin-right: -22px;
  padding: 15px;
  background: #e5e5e5;
  background: -moz-linear-gradient(#f5f5f5, #e5e5e5);
  background: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e5e5e5));
  background: -webkit-linear-gradient(#f5f5f5, #e5e5e5);
  background: -o-linear-gradient(#f5f5f5, #e5e5e5);
  background: -ms-linear-gradient(#f5f5f5, #e5e5e5);
  background: linear-gradient(#f5f5f5, #e5e5e5);
  -webkit-box-shadow: 0 -1px 0 rgba(255,255,255,.8) inset;
  -moz-box-shadow: 0 -1px 0 rgba(255,255,255,.8) inset;
  box-shadow: 0 -1px 0 rgba(255,255,255,.8) inset;
  text-shadow: 0 1px 0 #fff;
}

.headline3:before, .headline3:after{
  position: absolute;
  left: 0;
  bottom: -6px;
  content:'';
  border-top: 6px solid #555;
  border-left: 6px solid transparent;
}

.headline3:before{
  border-top: 6px solid #555;
  border-right: 6px solid transparent;
  border-left: none;
  left: auto;
  right: 0;
  bottom: -6px;
}
</pre>
<h3>Headline 4</h3>
<p>Using <code>box-shadow</code>, you can create some <a href="http://www.red-team-design.com/how-to-create-slick-effects-with-css3-box-shadow">slick effects</a>:</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css-heading-4.jpg" alt="" title="CSS heading 4" width="600" height="200" class="aligncenter size-full wp-image-4169" /></p>
<pre class="prettyprint">
.headline4{
	position: relative;
	border-color: #eee;
	border-style: solid;
	border-width: 5px 5px 5px 0;
	background: #fff;
	margin: 0 0 15px -15px;
	padding: 5px 15px;
	-moz-box-shadow: 1px 1px 1px rgba(0,0,0,.3);
	-webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.3);
	box-shadow: 1px 1px 1px rgba(0,0,0,.3);
}

.headline4:after
{
	content: "";
	position: absolute;
	z-index: -1;
	bottom: 15px;
	right: 15px;
	width: 70%;
	height: 10px;
	background: rgba(0, 0, 0, .7);
	-webkit-box-shadow: 0 15px 10px rgba(0,0,0, .7);
	-moz-box-shadow: 0 15px 10px rgba(0, 0, 0, .7);
	box-shadow: 0 15px 10px rgba(0, 0, 0, .7);
	-webkit-transform: rotate(2deg);
	-moz-transform: rotate(2deg);
	-o-transform: rotate(2deg);
	-ms-transform: rotate(2deg);
	transform: rotate(2deg);
}
</pre>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2012/01/cool-headings-with-pseudo-elements-demo.html">View demo</a>
</p>
<h3>Conclusion</h3>
<p>I hope you liked my headings examples, and if you have some other cool ones to add, feel free to share your thoughts with us. Thanks you for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-team-design.com/cool-headings-with-pseudo-elements/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Just another CSS3 menu</title>
		<link>http://www.red-team-design.com/just-another-css3-menu</link>
		<comments>http://www.red-team-design.com/just-another-css3-menu#comments</comments>
		<pubDate>Mon, 09 Jan 2012 06:00:25 +0000</pubDate>
		<dc:creator>Red</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.red-team-design.com/?p=4105</guid>
		<description><![CDATA[Hey there, this is my first post on 2012 and today you&#8217;ll learn how to create a simple and clean CSS3 menu in just a few steps. View demo I know, there are so many CSS3 menu tutorials in the wild (including here on RTD) but I hope you will love this one also. CSS3 [...]]]></description>
			<content:encoded><![CDATA[<p>Hey there, this is my first post on 2012 and today you&#8217;ll learn how to create a simple and clean CSS3 menu in just a few steps. </p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/just-another-css3-menu.png" alt="" title="Just another CSS3 menu" width="600" height="200" class="aligncenter size-full wp-image-4108" /></p>
<p><span id="more-4105"></span></p>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2012/01/just-another-css3-menu-demo.html">View demo</a>
</p>
<p>I know, there are so many CSS3 menu tutorials in the wild (including here on RTD) but I hope you will love this one also.</p>
<h3>CSS3 menu tutorials</h3>
<p>Below is a list with other CSS3 menu articles you may have read here:</p>
<ul>
<li><a href="http://www.red-team-design.com/sexy-css3-menu">Sexy CSS3 menu</a></li>
<li><a href="http://www.red-team-design.com/css3-animated-dropdown-menu">CSS3 animated dropdown menu</a></li>
<li><a href="http://www.red-team-design.com/cool-css3-navigation-menu">Cool CSS3 navigation menu</a></li>
<li><a href="http://www.red-team-design.com/create-a-stylish-html5-template-from-scratch">Vertical dropdown menu with CSS3 and jQuery</a></li>
</ul>
<h3>The idea</h3>
<p>The idea for this CSS3 navigation menu came to me while watching this button on <a href="http://www.uiparade.com/portfolio/ultra-clean-home-button/">UI Parade</a>. Usually, when I see design stuff on the internet, I try to image how can I make it using CSS3. I think this a professional habit.</p>
<h3>The HTML</h3>
<p>Check the markup below, simple and effective:</p>
<pre class="prettyprint">
&lt;nav&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;a href=""&gt;Home&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=""&gt;Categories&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=""&gt;About&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=""&gt;Portfolio&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=""&gt;Contact&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
&lt;/nav&gt;
</pre>
<p>Also, do not forget to include the following snippet when using HTML5 specific tags like <code>nav</code>:</p>
<pre class="prettyprint">
&lt;!--[if lt IE 9]&gt;
	&lt;script src="http://html5shim.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;
&lt;![endif]--&gt;
</pre>
<h3>The CSS</h3>
<p>The following lines do not contain the vendor-specific properties like <code>-moz-</code> or <code>-webkit-</code>. From now on, I think this is how I&#8217;ll present the CSS in my articles. Just keep in mind that you can always find the full code in the demo page source.</p>
<h4>Step 1</h4>
<p>To be short: reset the margin and padding for the unordered list, also center align the <code>inline-block</code> list elements:</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/initial-menu-styles.png" alt="" title="Initial CSS3 menu styles" width="600" height="200" class="aligncenter size-full wp-image-4141" /></p>
<pre class="prettyprint">
nav{
	width: 960px;
	margin: 80px auto;
	text-align: center;
}

nav ul{
	margin: 0;
	padding: 0;
}
</pre>
<h4>Step 2</h4>
<p>For the menu elements, instead using <a href="http://www.red-team-design.com/clearing-floats-nowadays">float</a> I chose the <code>inline-block</code> alternative. If you want to find out more about <code>inline-block</code> pros and cons, I&#8217;d recommend Robert Nyman&#8217;s article: <a href="http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/">CSS display: inline-block: why it rocks, and why it sucks</a>.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/inline-block-elements.png" alt="" title="Inline-block list elements" width="600" height="200" class="aligncenter size-full wp-image-4142" /></p>
<pre class="prettyprint">
nav li{
	margin: 0 10px; /* Add some horizontal spacing */
	display: inline-block;
	*display: inline;  /* IE7 and below */
	zoom: 1;
}
</pre>
<h4>Step 3</h4>
<p>Using cool CSS3 properties like <a href="http://www.red-team-design.com/css-gradients-quick-tutorial">gradients</a> and <a href="http://www.red-team-design.com/how-to-create-slick-effects-with-css3-box-shadow">shadows</a> we&#8217;re going to style the anchor elements:</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-menu-anchor-styles.png" alt="" title="CSS3 menu - anchor styles" width="600" height="200" class="aligncenter size-full wp-image-4143" /></p>
<pre class="prettyprint">
nav a{
	display: inline-block;
	position: relative;
	padding: 8px 15px;
	border: 2px solid #fff;
	text-decoration: none;
	color: #999;
	font: bold 14px 'Lucida sans', Arial, Helvetica;
	background-color: #eaeaea;
	background-image: linear-gradient(top, #eaeaea, #fff);
	border-radius: 3px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .05) inset,
				0 0 1px 0 rgba(0, 0, 0, .2),
				0 2px 2px rgba(0, 0, 0, .3),
				0 10px 10px -5px rgba(0, 0, 0, .2);
}

nav a:hover{
	background-color: #eee;
	background-image: linear-gradient(top, #eee, #fff);
}	

nav a:active{
        top: 1px; /* Simulate the push button effect */
	background: #f5f5f5;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .05) inset,
				0 0 1px 0px rgba(0, 0, 0, .2),
				0 1px 2px rgba(0, 0, 0, .3);
}
</pre>
<h4>Step 4</h4>
<p>The below is the most interesting part, in my opinion. Without, adding any extra markup and using a <a href="http://www.red-team-design.com/before-after-pseudo-elements">pseudo-element</a> you will be able to create a cool effect:</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2012/01/css3-menu-before-pseudo-element.png" alt="" title="CSS3 menu using the before pseudo-element" width="600" height="200" class="aligncenter size-full wp-image-4144" /></p>
<pre class="prettyprint">
nav a::before{
	<mark>content: '';</mark>
	<mark>position: absolute;</mark>
	<mark>top: -10px;</mark>
	<mark>right: -10px;</mark>
	<mark>bottom: -10px;</mark>
	<mark>left: -10px;</mark>
	<mark>z-index: -1;</mark>
	background-color: #e3e3e3;
	background-image: linear-gradient(top, #e3e3e3, #f7f7f7);
	border-radius: 2px;
	box-shadow: 0 1px 1px rgba(0,0,0,.05) inset;
}

nav a:active::before{
	top: -11px; /* Hey you, don't move! */
}
</pre>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2012/01/just-another-css3-menu-demo.html">View demo</a>
</p>
<h3>That&#8217;s it!</h3>
<p>I hope you enjoyed this article and I&#8217;m looking forward to hear your thoughts about it. Thanks for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-team-design.com/just-another-css3-menu/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>RTD’s top 10 most read articles of 2011</title>
		<link>http://www.red-team-design.com/rtds-top-10-most-read-articles-of-2011</link>
		<comments>http://www.red-team-design.com/rtds-top-10-most-read-articles-of-2011#comments</comments>
		<pubDate>Sat, 31 Dec 2011 02:00:48 +0000</pubDate>
		<dc:creator>Red</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Graphic Design]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.red-team-design.com/?p=4071</guid>
		<description><![CDATA[I think 2011 was a great year for RedTeamDesign and for me also. I published quite many articles here and just to recap some of my best content, here are my top 10 of 2011: Just some other awesome CSS3 buttons CSS3 dropdown menu Slick login form with HTML5 &#038; CSS3 Cool notification messages with [...]]]></description>
			<content:encoded><![CDATA[<p>I think 2011 was a great year for RedTeamDesign and for me also. I published quite many articles here and just to recap some of my best content, here are my top 10 of 2011:</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/12/top-10-most-read-articles-of-2011.png" alt="" title="Top 10 most read articles of 2011" width="600" height="200" class="aligncenter size-full wp-image-4098" /></p>
<p><span id="more-4071"></span></p>
<h3><a href="http://www.red-team-design.com/just-another-awesome-css3-buttons">Just some other awesome CSS3 buttons</a></h3>
<p><a href="http://www.red-team-design.com/just-another-awesome-css3-buttons"><img src="http://www.red-team-design.com/wp-content/uploads/2011/09/css3-buttons.png" alt="Just some other awesome CSS3 buttons" /><br />
</a></p>
<h3><a href="http://www.red-team-design.com/css3-dropdown-menu">CSS3 dropdown menu</a></h3>
<p><a href="http://www.red-team-design.com/css3-dropdown-menu"><img src="http://www.red-team-design.com/wp-content/uploads/2011/03/css-menu.png" alt="CSS3 dropdown menu" /></a></p>
<h3><a href="http://www.red-team-design.com/slick-login-form-with-html5-css3">Slick login form with HTML5 &#038; CSS3</a></h3>
<p><a href="http://www.red-team-design.com/slick-login-form-with-html5-css3"><img src="http://www.red-team-design.com/wp-content/uploads/2011/09/login-form-final-result.png" alt="Slick login form with HTML5 &#038; CSS3" /></a></p>
<h3><a href="http://www.red-team-design.com/cool-notification-messages-with-css3-jquery">Cool notification messages with CSS3 &#038; jQuery</a></h3>
<p><a href="http://www.red-team-design.com/cool-notification-messages-with-css3-jquery"><img src="http://www.red-team-design.com/wp-content/uploads/2011/07/css3-jquery-notification-messages.jpg" alt="Cool notification messages with CSS3 &#038; jQuery" /></a></p>
<h3><a href="http://www.red-team-design.com/css3-animated-dropdown-menu">CSS3 animated dropdown menu</a></h3>
<p><a href="http://www.red-team-design.com/css3-animated-dropdown-menu"><img src="http://www.red-team-design.com/wp-content/uploads/2011/11/css3-animated-dropdown-menu-preview.png" alt="CSS3 animated dropdown menu" /></a></p>
<h3><a href="http://www.red-team-design.com/how-to-create-slick-effects-with-css3-box-shadow">How to create slick effects with CSS3 box-shadow</a></h3>
<p><a href="http://www.red-team-design.com/how-to-create-slick-effects-with-css3-box-shadow"><img src="http://www.red-team-design.com/wp-content/uploads/2011/04/css3-box-shadow.png" alt="How to create slick effects with CSS3 box-shadow" /></a></p>
<h3><a href="http://www.red-team-design.com/practical-css3-tables-with-rounded-corners">Practical CSS3 tables with rounded corners</a></h3>
<p><a href="http://www.red-team-design.com/practical-css3-tables-with-rounded-corners"><img src="http://www.red-team-design.com/wp-content/uploads/2011/10/css3-tables.png" alt="Practical CSS3 tables with rounded corners" /></a></p>
<h3><a href="http://www.red-team-design.com/sexy-css3-menu">Sexy CSS3 menu</a></h3>
<p><a href="http://www.red-team-design.com/sexy-css3-menu"><img src="http://www.red-team-design.com/wp-content/uploads/2011/06/css3-menu-span.png" alt="Sexy CSS3 menu" /></a></p>
<h3><a href="http://www.red-team-design.com/how-to-create-a-cool-and-usable-css3-search-box">How to create a cool CSS3 search box</a></h3>
<p><a href="http://www.red-team-design.com/how-to-create-a-cool-and-usable-css3-search-box"><img src="http://www.red-team-design.com/wp-content/uploads/2011/02/css3-searchbox.png" alt="How to create a cool and usable CSS3 search box" /></a></p>
<h3><a href="http://www.red-team-design.com/cross-browser-css-gradient-buttons">Cross-browser CSS gradient buttons</a></h3>
<p><a href="http://www.red-team-design.com/cross-browser-css-gradient-buttons"><img src="http://www.red-team-design.com/wp-content/uploads/2011/01/css-gradient-buttons.png" alt="Cross-browser CSS gradient buttons" /></a></p>
<h3>Thank you all!</h3/>
<p>In the end, I would also like to thank everyone who has supported me over the year. Especially, I would like to thank those who have sent encouragements <a href="http://www.red-team-design.com/contact">by email</a>, those who have <a href="http://twitter.com/catalinred">tweeted</a> my articles, those who have commented on my articles, those who are liking <a href="https://www.facebook.com/RedTeamDesign">RTD on facebook</a>, those who have <a href="http://feeds.feedburner.com/redteamdesign">subscribed to my RSS feed</a>, and to anyone who has read my articles.</p>
<p>It is you who encourage me to go further and I will continue to write and publish articles for 2012.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-team-design.com/rtds-top-10-most-read-articles-of-2011/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Awesome CSS3 animated header</title>
		<link>http://www.red-team-design.com/awesome-css3-animated-header</link>
		<comments>http://www.red-team-design.com/awesome-css3-animated-header#comments</comments>
		<pubDate>Tue, 27 Dec 2011 03:00:37 +0000</pubDate>
		<dc:creator>Red</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.red-team-design.com/?p=4025</guid>
		<description><![CDATA[You can now create stunning animations with CSS3. But, I bet you know that. The keyword when it comes about CSS3 animations is the CSS3 @keyframes rule and in this article you will learn how to create an awesome CSS3 animated header using it. View demo also, you can download the .psd concept The HTML [...]]]></description>
			<content:encoded><![CDATA[<p>You can now create stunning animations with CSS3. But, I bet you know that. The keyword when it comes about CSS3 animations is the CSS3 <code>@keyframes</code> rule and in this article you will learn how to create an awesome CSS3 animated header using it.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/12/awesome-css3-animated-header.gif" alt="" title="Awesome CSS3 animated header" width="600" height="200" class="aligncenter size-full wp-image-4027" /></p>
<p><span id="more-4025"></span></p>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-animated-header-demo.html">View demo</a><br />
<br />
also, you can <a href="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-animated-header.zip">download the .psd</a> concept
</p>
<h3>The HTML</h3>
<p>The markup is minimal and quite self explanatory. Please, don&#8217;t blame me for <em title="The habit of using HTML divs for everything in CSS layouts">divitis</em>. :)</p>
<pre class="prettyprint">
&lt;div class="header"&gt;
	&lt;div class="wrapper"&gt;
		&lt;div class="christmas-tree tree1"&gt;&lt;/div&gt;
		&lt;div class="christmas-tree tree2"&gt;&lt;/div&gt;
		&lt;div class="christmas-tree tree3"&gt;&lt;/div&gt;
		&lt;div class="snowman"&gt;&lt;/div&gt;
		&lt;div class="christmas-tree tree4"&gt;&lt;/div&gt;
		&lt;div class="christmas-tree tree5"&gt;&lt;/div&gt;
		&lt;div class="christmas-tree tree6"&gt;&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;
</pre>
<h3>Image resources</h3>
<p>Below, you can find the images you will use in order to create the header:</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-header-images.png" alt="" title="CSS3 header - images" width="600" height="200" class="aligncenter size-full wp-image-4038" /></p>
<h3>The CSS</h3>
<p>As you read at the beginning of this article, the <a href="http://www.w3.org/TR/css3-animations/">@keyframes</a> rule does all the magic. Also, to keep the following code as clean as possible, I will not add the prefixed versions too (<code>-moz-</code>, <code>-webkit-</code>, <code>-ms-</code>).</p>
<p>You can find the full CSS3 code when viewing page source for the demo.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-header-background.png" alt="" title="CSS3 header background" width="600" height="200" class="aligncenter size-full wp-image-4040" /></p>
<p>To achieve the snow effect, you will need to animate the <code>background-position</code> property for the first <code>.header</code> background. As a quick note, for the browsers that do not support multiple backgrounds, the snow will not be visible for this example.</p>
<pre class="prettyprint">
.header{
	margin: 0 0 30px;
	background: url(header-bg.png);
	background: url(snow-bg.png) repeat-y center, url(header-bg.png);
	<mark>animation: animate-snow 9s linear infinite;</mark>
}

@keyframes animate-snow
{
	0% { background-position: center 0, 0 0;}
	100% { background-position: center 885px, 0 0;}
}
</pre>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-header-wrapper.png" alt="" title="CSS3 header wrapper" width="600" height="200" class="aligncenter size-full wp-image-4042" /></p>
<p>The <code>.wrapper</code> element basically holds all our Christmas trees together with the snowman. Please note the <code>position: relative</code> declaration:</p>
<pre class="prettyprint">
.wrapper{
	width: 960px;
	height: 315px;
	margin: auto;
	overflow: hidden;
	position: relative;
	background: url(wrapper-bg.png) no-repeat bottom;
}
</pre>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/12/awesome-css3-animated-header.gif" alt="" title="CSS3 animated header preview" width="600" height="200" class="aligncenter size-full wp-image-4027" /></p>
<p>For the Christmas trees, the <code>animation-duration</code> value was randomly changed in order to create a cool effect: </p>
<pre class="prettyprint">
@keyframes animate-drop {
	0% {opacity:0;transform: translate(0, -315px);}
	100% {opacity:1;transform: translate(0, 0);}
}	

.christmas-tree,
.snowman {
	position: absolute;
	<mark>animation: animate-drop 1s linear;</mark>
}

.christmas-tree {
	width: 112px;
	height: 137px;
	background: url(christmas-tree.png);
}

.snowman {
	width: 115px;
	height: 103px;
	top: 195px;
	left: 415px;
	background: url(snowman.png);
	<mark>animation-duration: .6s;</mark>
}	

.tree1 {
	top: 165px;
	left: 35px;
	<mark>animation-duration: .6s;</mark>
}

.tree2 {
	left: 185px;
	top: 175px;
	<mark>animation-duration: .9s;</mark>
}

.tree3 {
	left: 340px;
	top: 125px;
	<mark>animation-duration: .7s;</mark>
}

.tree4 {
	left: 555px;
	top: 155px;
	<mark>animation-duration: .8s;</mark>
}

.tree5 {
	left: 710px;
	top: 170px;
	<mark>animation-duration: .7s;</mark>
}

.tree6 {
	left: 855px;
	top: 125px;
	<mark>animation-duration: .6s;</mark>
}
</pre>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-animated-header-demo.html">View demo</a><br />
<br />
also, you can <a href="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-animated-header.zip">download the .psd</a> concept
</p>
<h3>Browser support</h3>
<p>Here&#8217;s the support at this time: Firefox 5+, IE 10+, Chrome 6+, Safari 5+. For non-supported browsers, you don&#8217;t have to worry, everything will be just fine as long as you provide decent fallbacks.</p>
<h3>Why to use animations?</h3>
<p>Simple answer: <strong>to draw the user’s attention</strong>. Get inspired by another example, here is one of my previous articles, where I also used CSS3 keyframes: <a href="http://www.red-team-design.com/cool-notification-messages-with-css3-jquery">Cool notification messages with CSS3 &#038; jQuery</a>. </p>
<h3>Happy Holidays!</h3>
<p>We&#8217;re getting close to New Year&#8217;s and, with this article, I want to wish you all the best and Happy Holidays. Thank you all for reading my articles!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-team-design.com/awesome-css3-animated-header/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Meet the CSS4 selectors</title>
		<link>http://www.red-team-design.com/meet-the-css4-selectors</link>
		<comments>http://www.red-team-design.com/meet-the-css4-selectors#comments</comments>
		<pubDate>Tue, 20 Dec 2011 03:00:47 +0000</pubDate>
		<dc:creator>Red</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[CSS4]]></category>

		<guid isPermaLink="false">http://www.red-team-design.com/?p=3981</guid>
		<description><![CDATA[You may already know that, when speaking about web development, CSS3 and HTML5 are the two main buzz words. This matter might change in the future because, almost two months ago, the latest CSS Selectors Level 4 Working Draft was released by the World Wide Web Consortium (W3C). In this article you&#8217;ll find out some [...]]]></description>
			<content:encoded><![CDATA[<p>You may already know that, when speaking about web development, <strong>CSS3</strong> and <strong>HTML5</strong> are the two main buzz words. This matter might change in the future because, almost two months ago, the latest <a href="http://www.w3.org/TR/2011/WD-selectors4-20110929">CSS Selectors Level 4 Working Draft</a> was released by the World Wide Web Consortium (W3C).</p>
<p>In this article you&#8217;ll find out some interesting stuff about the new CSS4 selectors.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/12/css4-selectors.png" alt="" title="CSS4 selectors" width="600" height="200" class="aligncenter size-full wp-image-3992" /></p>
<p><span id="more-3981"></span></p>
<p>As an introduction, you should know that these CSS4 selectors specifications are quite new and no browser actually supports any of the below features yet. Further, I hope this will change.</p>
<p>So let&#8217;s see below some great new CSS4 stuff:</p>
<h3>The &#8220;parent&#8221; selector</h3>
<p>Before, there was no option to select the parent of an element in CSS (not even CSS3). With CSS4, the most important news in the current W3C draft is the support for the parent selector.</p>
<pre class="prettyprint">
$ul li:hover{
    background: #fff;
}
</pre>
<p>Using the above, when hovering an list element, the whole unordered list will be somehow highlighted by adding a white background to it. </p>
<p>Another example I&#8217;m thinking about now is when using HTML forms: for example we could highlight a HTML <code>fieldset</code> when one of its inputs is focused:</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/12/css4-selectors-fieldset.png" alt="" title="Fieldset preview" width="600" height="200" class="aligncenter size-full wp-image-3995" /><br />
<em>Fieldset highlighted when an inner input is focused</em></p>
<pre class="prettyprint">
$fieldset input:focus{
    background: #f3eab1;
}
</pre>
<h3>Matches-Any Pseudo-class</h3>
<p>The <code>:matches()</code> CSS4 selector is the standardized version of Mozilla’s <code><a href="https://developer.mozilla.org/en/CSS/%3A-moz-any">:-moz-any()</a></code> pseudo class. This new proposal can simplify the process of writing complex CSS. </p>
<p>Here&#8217;s a quick example:</p>
<pre class="prettyprint">
:matches(section, article, aside) h1 {
    font-size: 2em;
}
</pre>
<p>as an abbreviation for: </p>
<pre class="prettyprint">
section h1, article h1, aside h1 {
    font-size: 2em;
}
</pre>
<h3>Other CSS4 pseudo-class selectors</h3>
<p>The <code><strong>:indeterminate</strong></code> pseudo-class applies to UI elements whose value is in an indeterminate state. For example, radio and checkbox elements can be toggled between checked and unchecked states, but are sometimes in an indeterminate state, neither checked nor unchecked. Similarly a progress meter can be in an indeterminate state when the percent completion is unknown. </p>
<p>The <code><strong>:nth-match</strong>(an+b of selector-list)</code> pseudo-class notation represents an element that has a parent and has <code>an+b-1</code> siblings that match the given selector-list before it in the document tree, for any zero or positive integer value of n.</p>
<h3>Conclusion</h3>
<p>We never get bored when it comes about new web technologies. I remember somebody said something like: We (developers) are living in exciting times. True.</p>
<p>Also, I&#8217;d strongly recommend you to read more about CSS4 selectors here:</p>
<ul>
<li><a href="www.w3.org/TR/2011/WD-selectors4-20110929/">W3C Working Draft 29 September 2011</a></li>
<li><a href="http://generatedcontent.org/post/10865123182/selectors4">What’s slated for CSS4 Selectors?</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.red-team-design.com/meet-the-css4-selectors/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>CSS3 pricing table</title>
		<link>http://www.red-team-design.com/css3-pricing-table</link>
		<comments>http://www.red-team-design.com/css3-pricing-table#comments</comments>
		<pubDate>Mon, 12 Dec 2011 02:00:01 +0000</pubDate>
		<dc:creator>Red</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.red-team-design.com/?p=3938</guid>
		<description><![CDATA[When designing a pricing table for a product or service, your job as a web designer/developer is to make sure that the table is easy to understand, intuitive and clear. This way, you will help users to choose the best plan for theirs needs. So, in this article you&#8217;ll learn how to build an awesome [...]]]></description>
			<content:encoded><![CDATA[<p>When designing a pricing table for a product or service, your job as a web designer/developer is to make sure that the table is easy to understand, intuitive and clear. This way, you will help users to choose the best plan for theirs needs.</p>
<p>So, in this article you&#8217;ll learn how to build an awesome CSS3 pricing table, with no images and minimal HTML markup.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-pricing-table.png" alt="" title="CSS3 pricing table" width="600" height="200" class="aligncenter size-full wp-image-3967" /></p>
<p><span id="more-3938"></span></p>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-pricing-table-demo.html">View demo</a>
</p>
<p><a href="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-pricing-table-demo.html"><img src="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-pricing-table-preview.png" alt="" title="CSS3 pricing table - preview" width="600" height="500" class="aligncenter size-full wp-image-3964" /></a><br />
<em>If you&#8217;re in a hurry, just check the final result.</em></p>
<h3>The HTML</h3>
<p>Here&#8217;s a markup excerpt with the Enterprise section:</p>
<pre class="prettyprint">
&lt;div id="pricing-table" class="clear"&gt;
    &lt;div class="plan"&gt;
        &lt;h3&gt;Enterprise&lt;span&gt;$59&lt;/span&gt;&lt;/h3&gt;
        &lt;a class="signup" href=""&gt;Sign up&lt;/a&gt;
        &lt;ul&gt;
            &lt;li&gt;&lt;b&gt;10GB&lt;/b&gt; Disk Space&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;100GB&lt;/b&gt; Monthly Bandwidth&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;20&lt;/b&gt; Email Accounts&lt;/li&gt;
	    &lt;li&gt;&lt;b&gt;Unlimited&lt;/b&gt; subdomains&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
    ...
&lt;/div&gt;
</pre>
<h3>The CSS</h3>
<p>Keep your CSS as simple as possible:</p>
<pre class="prettyprint">

#pricing-table {
	margin: 100px auto;
	text-align: center;
	width: 892px; /* total computed width = 222 x 3 + 226 */
}

#pricing-table .plan {
	font: 12px 'Lucida Sans', 'trebuchet MS', Arial, Helvetica;
	text-shadow: 0 1px rgba(255,255,255,.8);
	background: #fff;
	border: 1px solid #ddd;
	color: #333;
	padding: 20px;
	width: 180px; /* plan width = 180 + 20 + 20 + 1 + 1 = 222px */
	float: left;
	position: relative;
}

#pricing-table #most-popular {
	z-index: 2;
	top: -13px;
	border-width: 3px;
	padding: 30px 20px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	-moz-box-shadow: 20px 0 10px -10px rgba(0, 0, 0, .15), -20px 0 10px -10px rgba(0, 0, 0, .15);
	-webkit-box-shadow: 20px 0 10px -10px rgba(0, 0, 0, .15), -20px 0 10px -10px rgba(0, 0, 0, .15);
	box-shadow: 20px 0 10px -10px rgba(0, 0, 0, .15), -20px 0 10px -10px rgba(0, 0, 0, .15);
}

#pricing-table .plan:nth-child(1) {
	-moz-border-radius: 5px 0 0 5px;
	-webkit-border-radius: 5px 0 0 5px;
	border-radius: 5px 0 0 5px;
}

#pricing-table .plan:nth-child(4) {
	-moz-border-radius: 0 5px 5px 0;
	-webkit-border-radius: 0 5px 5px 0;
	border-radius: 0 5px 5px 0;
}

/* --------------- */	

#pricing-table h3 {
	font-size: 20px;
	font-weight: normal;
	padding: 20px;
	margin: -20px -20px 50px -20px;
	background-color: #eee;
	background-image: -moz-linear-gradient(#fff,#eee);
	background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
	background-image: -webkit-linear-gradient(#fff, #eee);
	background-image: -o-linear-gradient(#fff, #eee);
	background-image: -ms-linear-gradient(#fff, #eee);
	background-image: linear-gradient(#fff, #eee);
}

#pricing-table #most-popular h3 {
	background-color: #ddd;
	background-image: -moz-linear-gradient(#eee,#ddd);
	background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ddd));
	background-image: -webkit-linear-gradient(#eee, #ddd);
	background-image: -o-linear-gradient(#eee, #ddd);
	background-image: -ms-linear-gradient(#eee, #ddd);
	background-image: linear-gradient(#eee, #ddd);
	margin-top: -30px;
	padding-top: 30px;
	-moz-border-radius: 5px 5px 0 0;
	-webkit-border-radius: 5px 5px 0 0;
	border-radius: 5px 5px 0 0;
}

#pricing-table .plan:nth-child(1) h3 {
	-moz-border-radius: 5px 0 0 0;
	-webkit-border-radius: 5px 0 0 0;
	border-radius: 5px 0 0 0;
}

#pricing-table .plan:nth-child(4) h3 {
	-moz-border-radius: 0 5px 0 0;
	-webkit-border-radius: 0 5px 0 0;
	border-radius: 0 5px 0 0;
}	

#pricing-table h3 span {
	display: block;
	font: bold 25px/100px Georgia, Serif;
	color: #777;
	background: #fff;
	border: 5px solid #fff;
	height: 100px;
	width: 100px;
	margin: 10px auto -65px;
	-moz-border-radius: 100px;
	-webkit-border-radius: 100px;
	border-radius: 100px;
	-moz-box-shadow: 0 5px 20px #ddd inset, 0 3px 0 #999 inset;
	-webkit-box-shadow: 0 5px 20px #ddd inset, 0 3px 0 #999 inset;
	box-shadow: 0 5px 20px #ddd inset, 0 3px 0 #999 inset;
}

/* --------------- */

#pricing-table ul {
	margin: 20px 0 0 0;
	padding: 0;
	list-style: none;
}

#pricing-table li {
	border-top: 1px solid #ddd;
	padding: 10px 0;
}

/* --------------- */

#pricing-table .signup {
	position: relative;
	padding: 8px 20px;
	margin: 20px 0 0 0;
	color: #fff;
	font: bold 14px Arial, Helvetica;
	text-transform: uppercase;
	text-decoration: none;
	display: inline-block;
	background-color: #72ce3f;
	background-image: -moz-linear-gradient(#72ce3f, #62bc30);
	background-image: -webkit-gradient(linear, left top, left bottom, from(#72ce3f), to(#62bc30));
	background-image: -webkit-linear-gradient(#72ce3f, #62bc30);
	background-image: -o-linear-gradient(#72ce3f, #62bc30);
	background-image: -ms-linear-gradient(#72ce3f, #62bc30);
	background-image: linear-gradient(#72ce3f, #62bc30);
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	text-shadow: 0 1px 0 rgba(0,0,0,.3);
	-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 rgba(0, 0, 0, .7);
	-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 rgba(0, 0, 0, .7);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 rgba(0, 0, 0, .7);
}

#pricing-table .signup:hover {
	background-color: #62bc30;
	background-image: -moz-linear-gradient(#62bc30, #72ce3f);
	background-image: -webkit-gradient(linear, left top, left bottom, from(#62bc30), to(#72ce3f));
	background-image: -webkit-linear-gradient(#62bc30, #72ce3f);
	background-image: -o-linear-gradient(#62bc30, #72ce3f);
	background-image: -ms-linear-gradient(#62bc30, #72ce3f);
	background-image: linear-gradient(#62bc30, #72ce3f);
}

#pricing-table .signup:active, #pricing-table .signup:focus {
	background: #62bc30;
	top: 2px;
	-moz-box-shadow: 0 0 3px rgba(0, 0, 0, .7) inset;
	-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .7) inset;
	box-shadow: 0 0 3px rgba(0, 0, 0, .7) inset;
}

/* --------------- */

.clear:before, .clear:after {
  content:"";
  display:table
}

.clear:after {
  clear:both
}

.clear {
  zoom:1
}
</pre>
<h3>So, why should I use this pricing table design?</h3>
<p>While its structure isn&#8217;t actually based on <a href="http://www.red-team-design.com/practical-css3-tables-with-rounded-corners">tables</a>, here are some pros:</p>
<ul>
<li>Minimal HTML code.</li>
<li>No images at all and CSS3 ready, so this is easy to maintain/update.</li>
<li>Graceful degradation for older browsers.</li>
</ul>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-pricing-table-ie8.png" alt="" title="CSS3 pricing table - IE8" width="600" height="500" class="aligncenter size-full wp-image-3962" /><br />
<em><a href="http://www.red-team-design.com/how-to-solve-common-ie-bugs">Internet Explorer</a> 8 &#8211; preview</em></p>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2011/12/css3-pricing-table-demo.html">View demo</a>
</p>
<h3>Conclusion</h3>
<p>For this CSS3 pricing table, I tried to follow some best practices as:  </p>
<ul>
<li>Highlighting a recommended plan.</li>
<li>Making the price stand out.</li>
<li>Placing the plans in a descending order.</li>
</ul>
<p>I hope you like the result and don&#8217;t hesitate to share your thoughts about it. Thanks for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-team-design.com/css3-pricing-table/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Easy CSS3 &amp; jQuery tooltips</title>
		<link>http://www.red-team-design.com/easy-css3-jquery-tooltips</link>
		<comments>http://www.red-team-design.com/easy-css3-jquery-tooltips#comments</comments>
		<pubDate>Tue, 29 Nov 2011 04:00:38 +0000</pubDate>
		<dc:creator>Red</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.red-team-design.com/?p=3900</guid>
		<description><![CDATA[There&#8217;s no need to explain what a tooltip is and you already know that using tooltips can help you increase usability. Therefore, in this article we&#8217;ll concentrate just on the practical side. So, today you&#8217;ll learn how to create awesome CSS3 &#038; jQuery tooltips. View demo You may already read my previous CSS3 tooltips tutorial, [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s no need to explain what a tooltip is and you already know that using tooltips can help you increase usability. Therefore, in this article we&#8217;ll concentrate just on the practical side.</p>
<p>So, today you&#8217;ll learn how to create awesome CSS3 &#038; jQuery tooltips.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/11/css3-jquery-tooltips.png" alt="" title="CSS3 &amp; jQuery tooltips" width="600" height="200" class="aligncenter size-full wp-image-3901" /></p>
<p><span id="more-3900"></span></p>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2011/11/easy-css3-jquery-tooltips-demo.html">View demo</a>
</p>
<p>You may already read my previous <a href="http://www.red-team-design.com/css3-tooltips">CSS3 tooltips</a> tutorial, but this time we&#8217;ll use some jQuery and <a href="http://www.red-team-design.com/create-a-stylish-html5-template-from-scratch">HTML5</a> data-* attributes for our tooltips. </p>
<p>The major advantages of these tooltips are:</p>
<ul>
<li>the simplicity to use (as you&#8217;ll see below)</li>
<li>they are <a href="http://www.red-team-design.com/css3-animated-dropdown-menu">animated using CSS3</a></li>
</ul>
<h3>The HTML</h3>
<p>As you can see below, thanks to the new <a href="http://www.red-team-design.com/image-map-with-css3-jquery-tooltips">HTML5 custom data attributes</a>, our tooltip structure looks as clean as possible:</p>
<pre class="prettyprint">
&lt;b data-tooltip="Fantasy Action Adventure"&gt;Batman: Arkham City&lt;/b&gt;
</pre>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/11/css3-jquery-tooltips-preview.png" alt="Easy CSS3 &amp; jQuery tooltips - preview" title="css3-jquery-tooltips-preview" width="600" height="200" class="aligncenter size-full wp-image-3916" /></p>
<h3>The CSS</h3>
<p>Here are the styles used in order to create this 3D looking tooltip:</p>
<pre class="prettyprint">
.tooltip {
	position: relative;
	display: inline-block;
	cursor: help;
	white-space: nowrap;
	border-bottom: 1px dotted #777;
}

.tooltip-content {
	opacity: 0;
	visibility: hidden;
	font: 12px Arial, Helvetica;
	text-align: center;
	border-color: #aaa #555 #555 #aaa;
	border-style: solid;
	border-width: 1px;
	width: 150px;
	padding: 15px;
	position: absolute;
	bottom: 40px;
	left: 50%;
	margin-left: -76px;

	background-color: #fff;
	background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,.1)), to(rgba(255,255,255,0)));
	background-image: -webkit-linear-gradient(rgba(0,0,0,.1), rgba(255,255,255,0));
	background-image: -moz-linear-gradient(rgba(0,0,0,.1), rgba(255,255,255,0));
	background-image: -ms-linear-gradient(rgba(0,0,0,.1), rgba(255,255,255,0));
	background-image: -o-linear-gradient(rgba(0,0,0,.1), rgba(255,255,255,0));
	background-image: linear-gradient(rgba(0,0,0,.1), rgba(255,255,255,0));
	-moz-box-shadow: 1px 1px 0 #555,
				2px 2px 0 #555,
				3px 3px 1px rgba(0, 0, 0, .3),
				0   1px 0   rgba(255,255,255, .5) inset;
	-webkit-box-shadow: 1px 1px 0 #555,
				2px 2px 0 #555,
				3px 3px 1px rgba(0, 0, 0, .3),
				0   1px 0   rgba(255,255,255, .5) inset;
	box-shadow: 1px 1px 0 #555,
				2px 2px 0 #555,
				3px 3px 1px rgba(0, 0, 0, .3),
				0   1px 0   rgba(255,255,255, .5) inset;
	-webkit-transition: bottom .2s ease, opacity .2s ease;
	-moz-transition: bottom .2s ease, opacity .2s ease;
	-ms-transition: bottom .2s ease, opacity .2s ease;
	-o-transition: bottom .2s ease, opacity .2s ease;
	transition: bottom .2s ease, opacity .2s ease;
	}

.tooltip-content:after,
.tooltip-content:before {
	border-right: 16px solid transparent;
	border-top: 15px solid #fff;
	bottom: -15px;
	content: "";
	position: absolute;
	left: 50%;
	margin-left: -10px;
}

.tooltip-content:before {
	border-right-width: 25px;
	border-top-color: #555;
	border-top-width: 15px;
	bottom: -15px;
}

.tooltip:hover .tooltip-content{
	opacity: 1;
	visibility: visible;
	bottom: 30px;
}
</pre>
<h3>The jQuery</h3>
<p>Basically, the jQuery code does all the &#8220;dirty&#8221; job for you. Using the HTML5 <code>data-tooltip</code> attribute value, it appends a new HTML node: <code>&lt;span class="tooltip-content"&gt;</code> which will be animated using CSS3.</p>
<pre class="prettyprint">
$(document).ready(function(){
	$('[data-tooltip]').addClass('tooltip');
	$('.tooltip').each(function() {
		$(this).append('&lt;span class="tooltip-content"&gt;' + $(this).attr('data-tooltip') + '&lt;/span&gt;');
	});

	if ($.browser.msie &#038;&#038; $.browser.version.substr(0,1)<7)
	{
	  $('.tooltip').mouseover(function(){
			$(this).children('.tooltip-content').css('visibility','visible');
		  }).mouseout(function(){
			$(this).children('.tooltip-content').css('visibility','hidden');
		  })
	}
});
</pre>
<p><em><a href="http://www.red-team-design.com/how-to-solve-common-ie-bugs">IE6</a> gets some extra treatment, as you can see above.</em></p>
<h3>Browser support</h3>
<p>As usual, this demo also works across all major browsers:</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/11/css3-jquery-tooltips-ie.png" alt="" title="Easy CSS3 &amp; jQuery tooltips - Internet Explorer 6/7/8" width="600" height="400" class="aligncenter size-full wp-image-3925" /> </p>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2011/11/easy-css3-jquery-tooltips-demo.html">View demo</a>
</p>
<h3>That's all</h3>
<p>I hope that you enjoyed this tutorial and if you have any comments or questions feel free to add them below. Thanks for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-team-design.com/easy-css3-jquery-tooltips/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Stylish CSS3 progress bars</title>
		<link>http://www.red-team-design.com/stylish-css3-progress-bars</link>
		<comments>http://www.red-team-design.com/stylish-css3-progress-bars#comments</comments>
		<pubDate>Wed, 23 Nov 2011 06:30:51 +0000</pubDate>
		<dc:creator>Red</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.red-team-design.com/?p=3152</guid>
		<description><![CDATA[You&#8217;ve seen progress bars everywhere, they are those bars that display the current completion state for a process, such as a download or file transfer. Whether you&#8217;re building a desktop or a web application, at a certain point, you may need to use this UI element. Having said that, in this article you&#8217;ll learn how [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve seen progress bars everywhere, they are those bars that display the current completion state for a process, such as a download or file transfer. Whether you&#8217;re building a desktop or a web application, at a certain point, you may need to use this UI element.</p>
<p>Having said that, in this article you&#8217;ll learn how to create <strong>stylish and <a href="http://www.red-team-design.com/css3-animated-dropdown-menu">animated</a> progress bars</strong> using CSS3.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/11/stylish-css3-progress-bars.png" alt="Stylish CSS3 progress bars preview" title="Stylish CSS3 progress bars" width="600" height="200" class="aligncenter size-full wp-image-3853" /></p>
<p><span id="more-3152"></span></p>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2011/11/css3-slick-progress-bars-demo.html">View demo</a>
</p>
<h3>The HTML</h3>
<p>The markup could not be simpler than that: </p>
<pre class="prettyprint">
&lt;div class="progress-bar blue stripes"&gt;
    &lt;span style="width: 40%"&gt;&lt;/span&gt;
&lt;/div&gt;
</pre>
<ul>
<li><code>.progress-bar</code> &#8211; defines the general styles for our progress bar.</li>
<li><code>.blue</code> &#8211; in this case, the blue CSS class add a blue style for the progress bar.</li>
<li><code>.stripes</code> &#8211; animation type for the current progress bar.</li>
<li><code>span</code> &#8211; this will help you filling the progress bar. An inline set <code>width</code> will help you specifying the &#8220;fill&#8221; state.</li>
</ul>
<h3>The CSS</h3>
<p>General styles for the CSS3 progress bar and filled area:</p>
<pre class="prettyprint">
.progress-bar {
	background-color: #1a1a1a;
	height: 25px;
	padding: 5px;
	width: 350px;
	margin: 50px 0;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	-moz-box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
	-webkit-box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
	box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
}

.progress-bar span {
	display: inline-block;
	height: 25px;
	width: 200px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
	-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
        -webkit-transition: width .4s ease-in-out;
        -moz-transition: width .4s ease-in-out;
        -ms-transition: width .4s ease-in-out;
        -o-transition: width .4s ease-in-out;
        transition: width .4s ease-in-out;
}
</pre>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/11/css3-progress-bar-default.png" alt="" title="CSS3 progress bar - default" width="600" height="200" class="aligncenter size-full wp-image-3867" /></p>
<p>Let&#8217;s add some color/<a href="http://www.red-team-design.com/css-gradients-quick-tutorial">gradients</a>:</p>
<pre class="prettyprint">
.blue span {
	background-color: #34c2e3;
}

.orange span {
	  background-color: #fecf23;
	  background-image: -webkit-gradient(linear, left top, left bottom, from(#fecf23), to(#fd9215));
	  background-image: -webkit-linear-gradient(top, #fecf23, #fd9215);
	  background-image: -moz-linear-gradient(top, #fecf23, #fd9215);
	  background-image: -ms-linear-gradient(top, #fecf23, #fd9215);
	  background-image: -o-linear-gradient(top, #fecf23, #fd9215);
	  background-image: linear-gradient(top, #fecf23, #fd9215);
}	

.green span {
	  background-color: #a5df41;
	  background-image: -webkit-gradient(linear, left top, left bottom, from(#a5df41), to(#4ca916));
	  background-image: -webkit-linear-gradient(top, #a5df41, #4ca916);
	  background-image: -moz-linear-gradient(top, #a5df41, #4ca916);
	  background-image: -ms-linear-gradient(top, #a5df41, #4ca916);
	  background-image: -o-linear-gradient(top, #a5df41, #4ca916);
	  background-image: linear-gradient(top, #a5df41, #4ca916);
}
</pre>
<h4>Stripes</h4>
<p>You may have seen this <a href="http://www.red-team-design.com/cool-notification-messages-with-css3-jquery">CSS3 technique</a> before, I just adapted it a little for this example:</p>
<pre class="prettyprint">
.stripes span {
	-webkit-background-size: 30px 30px;
	-moz-background-size: 30px 30px;
	background-size: 30px 30px;
	background-image: -webkit-gradient(linear, left top, right bottom,
						color-stop(.25, rgba(255, 255, 255, .15)), color-stop(.25, transparent),
						color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .15)),
						color-stop(.75, rgba(255, 255, 255, .15)), color-stop(.75, transparent),
						to(transparent));
	background-image: -webkit-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
						transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
						transparent 75%, transparent);
	background-image: -moz-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
						transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
						transparent 75%, transparent);
	background-image: -ms-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
						transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
						transparent 75%, transparent);
	background-image: -o-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
						transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
						transparent 75%, transparent);
	background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
						transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
						transparent 75%, transparent);            

	-webkit-animation: animate-stripes 3s linear infinite;
	-moz-animation: animate-stripes 3s linear infinite;
}

@-webkit-keyframes animate-stripes {
	0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}

@-moz-keyframes animate-stripes {
	0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}
</pre>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/11/css3-progress-bar-stripes.png" alt="" title="CSS3 progress bar - stripes" width="600" height="200" class="aligncenter size-full wp-image-3870" /></p>
<h4>Shine</h4>
<p>Not sure if this is the best name I could find for this CSS3 animation, but here we go:</p>
<pre class="prettyprint">
.shine span {
	position: relative;
}

.shine span::after {
	content: '';
	opacity: 0;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #fff;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;			

	-webkit-animation: animate-shine 2s ease-out infinite;
	-moz-animation: animate-shine 2s ease-out infinite;
}

@-webkit-keyframes animate-shine {
	0% {opacity: 0; width: 0;}
	50% {opacity: .5;}
	100% {opacity: 0; width: 95%;}
}

@-moz-keyframes animate-shine {
	0% {opacity: 0; width: 0;}
	50% {opacity: .5;}
	100% {opacity: 0; width: 95%;}
}
</pre>
<p>This CSS3 progress bar example uses an CSS3 <code>::after</code> <a href="http://www.red-team-design.com/before-after-pseudo-elements">pseudo-element</a> which animates. Currently, animating generated content with CSS3 is available only on <strong>latest Firefox browsers</strong>. I hope that soon it will be a wider support for that.</p>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/11/css3-progress-bar-shine.png" alt="" title="CSS3 progress bar - shine" width="600" height="200" class="aligncenter size-full wp-image-3872" /></p>
<h4>Glow</h4>
<p>CSS3 keyframes animation based on <a href="http://www.red-team-design.com/how-to-create-slick-effects-with-css3-box-shadow">box-shadow</a> property:</p>
<pre class="prettyprint">
.glow span {
	-moz-box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;
	-webkit-box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;
	box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;

	-webkit-animation: animate-glow 1s ease-out infinite;
	-moz-animation: animate-glow 1s ease-out infinite;
}

@-webkit-keyframes animate-glow {
 0% { -webkit-box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;}
 50% { -webkit-box-shadow: 0 5px 5px rgba(255, 255, 255, .3) inset, 0 -5px 5px rgba(255, 255, 255, .3) inset;}
 100% { -webkit-box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;}
 }

@-moz-keyframes animate-glow {
 0% { -moz-box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;}
 50% { -moz-box-shadow: 0 5px 5px rgba(255, 255, 255, .3) inset, 0 -5px 5px rgba(255, 255, 255, .3) inset;}
 100% { -moz-box-shadow: 0 5px 5px rgba(255, 255, 255, .7) inset, 0 -5px 5px rgba(255, 255, 255, .7) inset;}
 }
</pre>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/11/css3-progress-bar-glow.png" alt="" title="CSS3 progress bar - glow" width="600" height="200" class="aligncenter size-full wp-image-3877" /></p>
<p class="center buttons-para">
<a class="demo" href="http://www.red-team-design.com/wp-content/uploads/2011/11/css3-slick-progress-bars-demo.html">View demo</a>
</p>
<h3>Hey, what about older browsers?</h3>
<p><img src="http://www.red-team-design.com/wp-content/uploads/2011/11/progress-bars-older-browsers.png" alt="" title="Progress bars on older browsers" width="600" height="200" class="aligncenter size-full wp-image-3888" /><br />
<em>The progress bars look pretty well thanks to graceful degradation.</em></p>
<h3>That&#8217;s all!</h3>
<p>For further web development, to achieve the result you wish for, you just need to play with JavaScript or jQuery to change the <code>span</code>&#8216;s <code>width</code> value for these progress bars.</p>
<p>I hope you liked this tutorial, please feel free to share your thoughts. Thanks for reading!</p>
<h3>Update</h3>
<p>I just added some jQuery to the <a href="http://www.red-team-design.com/wp-content/uploads/2011/11/css3-slick-progress-bars-demo.html">demo page</a>. So, now you can also play with progress bars values. Hope you like it! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.red-team-design.com/stylish-css3-progress-bars/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/12 queries in 0.008 seconds using disk: basic
Object Caching 900/918 objects using disk: basic

Served from: www.red-team-design.com @ 2012-02-04 05:41:41 -->
