<?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>Praveen Francis</title>
	<atom:link href="http://praveenfrancis.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://praveenfrancis.com</link>
	<description>Web and interface designer</description>
	<lastBuildDate>Sat, 16 Jul 2011 08:30:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Create a simple menu with CSS Sprite</title>
		<link>http://praveenfrancis.com/tutorials/create-a-simple-menu-with-css-sprite/</link>
		<comments>http://praveenfrancis.com/tutorials/create-a-simple-menu-with-css-sprite/#comments</comments>
		<pubDate>Sat, 16 Jul 2011 08:30:20 +0000</pubDate>
		<dc:creator>Praveen</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[css manu]]></category>
		<category><![CDATA[css sprite]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[sprite]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://praveenfrancis.com/?p=259</guid>
		<description><![CDATA[CSS Sprite. Just the concept of CSS sprite seem to befuddle new web designer. Rest assured that CSS sprites is a very simple concept and a pretty useful one too. In this tutorial I will walk through creating a simple &#8230; <a href="http://praveenfrancis.com/tutorials/create-a-simple-menu-with-css-sprite/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/07/sprite-banner.jpg" alt="CSS sprite menu" /><br />
<strong><br />
CSS Sprite. Just the concept of CSS sprite seem to befuddle new web designer. Rest assured that CSS sprites is a very simple concept and a pretty useful one too. In this tutorial I will walk through creating a simple menu powered by CSS Sprite<br />
</strong></p>
<div class="btnsWrap"><a class="genBtn" href="http://praveenfrancis.com/tuts/css-sprite/index.html" target="blank"> See Live Demo!</a> or <a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/07/css-sprite.zip"> Download!</a></div>
<h2>CSS Sprites</h2>
<p>CSS Sprite is a concept where instead of having multiple images for your webpage, you can have a single <em>sprite</em> which will have all your images in it. Typically, a sprite is a transparent image in .png format. For our menu, we need those four icons into a single sprite which we will manipulate using css.<br />
Here is the sprite I came up with in photoshop:<br />
<img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/07/sprite.jpg" alt="sprite" /><br />
I got these delicious icons from <a href="http://www.iconeden.com/icon/yummy-free-icons.html">here</a>. My icons are 64&#215;64, so I set the canvas to 64&#215;256 since I need to stack the four icons on top of each other. I set up three guidelines, each spaced exactly 64px apart. Now I just imported the icons and placed them inside those guides. Export this sprite to a .png file with a transparent background.</p>
<h2>The markup</h2>
<p>Since now we have the sprite ready, lets start with the markup </p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;menu&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cakes&quot;</span>&gt;</span>cakes<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;donuts&quot;</span>&gt;</span>donuts<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>  
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;rolls&quot;</span>&gt;</span>rolls<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>  
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pies&quot;</span>&gt;</span>pies<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>    
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div>

<p>The reason I have added IDs to each list element is because we need an identifier to distinguish between east list item for our css.</p>
<h2>The CSS</h2>
<p>Here is the necessary CSS we need for the sprite to work</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">ul<span style="color: #6666ff;">.menu</span> li    <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#47170b</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">12px</span> <span style="color: #933;">85px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">14px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">sprite.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Note that we add the sprite as a common background for <strong>all</strong> the list elements, along with the necessary padding and margin.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">   ul<span style="color: #6666ff;">.menu</span> li<span style="color: #cc00cc;">#cakes</span>   <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">&#125;</span>
   ul<span style="color: #6666ff;">.menu</span> li<span style="color: #cc00cc;">#donuts</span>  <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-64px</span><span style="color: #00AA00;">&#125;</span>
   ul<span style="color: #6666ff;">.menu</span> li<span style="color: #cc00cc;">#rolls</span>   <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-128px</span><span style="color: #00AA00;">&#125;</span>
   ul<span style="color: #6666ff;">.menu</span> li<span style="color: #cc00cc;">#pies</span>    <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-196px</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p> Adding these css will distinguish the list from one another. Note that the Y-position of the background is shifted up in multiples of 64px, since our icons are spaced out that way.</p>
<h2>Conclusion</h2>
<p>There you go, after necessary styles, you should have your CSS Sprite-powered menu. Feel free to download my files and experiment. Have fun!</p>
<div class="btnsWrap"><a class="genBtn" href="http://praveenfrancis.com/tuts/css-sprite/index.html" target="blank"> See Live Demo!</a> or <a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/07/css-sprite.zip"> Download!</a></div>
]]></content:encoded>
			<wfw:commentRss>http://praveenfrancis.com/tutorials/create-a-simple-menu-with-css-sprite/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Create a gorgeous form with just CSS</title>
		<link>http://praveenfrancis.com/tutorials/create-a-gorgeous-form-with-just-css/</link>
		<comments>http://praveenfrancis.com/tutorials/create-a-gorgeous-form-with-just-css/#comments</comments>
		<pubDate>Mon, 25 Apr 2011 17:52:28 +0000</pubDate>
		<dc:creator>Praveen</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://praveenfrancis.com/?p=238</guid>
		<description><![CDATA[Create this form in clean and simple CSS3 and no images. <a href="http://praveenfrancis.com/tutorials/create-a-gorgeous-form-with-just-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/04/banner.jpg" alt="Pure CSS Form" /><br />
<strong><br />
If you&#8217;re creating a website, one of the most important pages you will need to design is the contact form. Interaction with your potential clients or target demographic is vital to the success of your site, and so it&#8217;s only natural that you&#8217;d want one which is simple, functional and good looking. Read on if you&#8217;d like to learn more about creating this form in clean and simple CSS3 without using any images.<br />
</strong></p>
<div class="btnsWrap"><a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/04/css-form.html" target="blank"> See Live Demo!</a> or <a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/04/css-form.zip"> Download!</a></div>
<h2>The markup</h2>
<p>As always with my tutorials, the markup will be as simple as possible. </p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;css3Form&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Contact me<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Your Name&quot;</span><span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Email Address&quot;</span><span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>    
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">textarea</span> <span style="color: #000066;">rows</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;5&quot;</span>&gt;</span> Comments <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">textarea</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Send&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span></pre></div></div>

<h2>The CSS</h2>
<p>We start with the CSS for the form. Please note that CSS3 will be extensively used, this will not work in IE8 or other older browsers (but it will still fall back gracefully).</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.css3Form</span> ul li
<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#949494</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#949494</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#949494</span><span style="color: #00AA00;">;</span>
		border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>	
&nbsp;
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">both</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.css3Form</span> input<span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.css3Form</span> textarea
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">16px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#b3b3b3</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#585858</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#4b4b4b</span><span style="color: #00AA00;">;</span>	
&nbsp;
	border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>		
&nbsp;
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">3px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">3px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">3px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-moz-linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span> <span style="color: #933;">100%</span> 90deg<span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#7e7e7e</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#5e5e5e</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-webkit-</span>gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#5e5e5e</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#7e7e7e</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.css3Form</span> <span style="color: #6666ff;">.button</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#bababa</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#363636</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#363636</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-moz-linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span> <span style="color: #933;">100%</span> 90deg<span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#5f5f5f</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#9e9e9e</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-webkit-</span>gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#9e9e9e</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#5f5f5f</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>	
&nbsp;
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#9d9d9d</span><span style="color: #00AA00;">;</span>	
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><strong> If you find any of the above styles incomprehensible, check out some of my earlier tutorials which explain these CSS3 properties in simple terms: <a href="http://praveenfrancis.com/tutorials/tutorial-css3-buttons-without-images/">CSS3 Buttons</a>, <a href="http://praveenfrancis.com/tutorials/tutorial-pure-css3-navigation-menu/">CSS3 Navigation</a></strong></p>
<p>There you go, a simple yet gorgeous form created using just CSS.</p>
<div class="btnsWrap"><a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/04/css-form.html" target="blank"> See Live Demo!</a> or <a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/04/css-form.zip"> Download!</a></div>
]]></content:encoded>
			<wfw:commentRss>http://praveenfrancis.com/tutorials/create-a-gorgeous-form-with-just-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google&#8217;s new top navigation bar &#8211; CSS tutorial</title>
		<link>http://praveenfrancis.com/design/googles-new-top-navigation-bar-css-tutorial/</link>
		<comments>http://praveenfrancis.com/design/googles-new-top-navigation-bar-css-tutorial/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 17:24:00 +0000</pubDate>
		<dc:creator>Praveen</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[css gradients]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Navigation Bar]]></category>
		<category><![CDATA[rounded corner]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://praveenfrancis.com/?p=215</guid>
		<description><![CDATA[Google rolled out its top navigation bar today, which reflects across Gmail, Search, Reader and other Google Apps. According to me, the new design looks a lot more sleek and modern than the old one. It does away underlines which looked a little old school. With this tutorial, recreate the Google Navigation in CSS. <a href="http://praveenfrancis.com/design/googles-new-top-navigation-bar-css-tutorial/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/google-nav.jpg" alt="Google's new navigation" /><br />
<strong>Recreate Google&#8217;s new navigation bar in pure CSS </strong></p>
<h2>Google raises the &#8216;bar&#8217;</h2>
<p> Google rolled out its top navigation bar today, and it now reflects across Gmail, Search, Reader and other Google Apps. In my opinion, the new design looks a lot sleeker and more modern than the old one since it does away with all the old school underlines.</p>
<h2>Recreating the Google Navigation in CSS </h2>
<p>So let&#8217;s develop this new, stylish bar in CSS. Check out the demo below to see what you will be creating.</p>
<div class="btnsWrap"><a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/googles-new-navigation.html" target="blank"> See Live Demo!</a> or <a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/googles-new-navigation.zip"> Download!</a></div>
<h2>The markup</h2>
<p>Here is the basic markup for the navigation. It&#8217;s pretty simple. </p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;googleTab&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;active&quot;</span>&gt;</span>Home<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>About us<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Our Services<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Our Technologies<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Contact us<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div>

<h2>The CSS</h2>
<p>Here we have the CSS style for the navigation. You can see that it uses a lot of CSS3 properties.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">ul<span style="color: #6666ff;">.googleTab</span>				<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#848383</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#3366cc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-moz-linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span> <span style="color: #933;">100%</span> 90deg<span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f5f5f5</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-webkit-</span>gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#f5f5f5</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #6666ff;">.googleTab</span> li	<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">7px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#bad3ea</span><span style="color: #00AA00;">;</span>	
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #6666ff;">.googleTab</span> li.active<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span> <span style="color: #933;">3px</span> <span style="color: #cc00cc;">#1a54e1</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#363636</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ul<span style="color: #6666ff;">.googleTab</span> li<span style="color: #3333ff;">:hover	</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#e4ebf8</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span><span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><strong>The CSS styles and parameters mentioned above are mostly self-explanatory. If you still found it hard to understand any of the parameters, check out my other tutorials which cover this subject in detail: <a href="http://praveenfrancis.com/tutorials/tutorial-css3-buttons-without-images/">CSS3 Buttons</a>, <a href="http://praveenfrancis.com/tutorials/tutorial-pure-css3-navigation-menu/">CSS3 Navigation</a></strong></p>
<p>I hope that this was both fun and helpful. Enjoy!</p>
<div class="btnsWrap"><a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/googles-new-navigation.html" target="blank"> See Live Demo!</a> or <a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/googles-new-navigation.zip"> Download!</a></div>
]]></content:encoded>
			<wfw:commentRss>http://praveenfrancis.com/design/googles-new-top-navigation-bar-css-tutorial/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Tutorial – Pure CSS Navigation Menu</title>
		<link>http://praveenfrancis.com/tutorials/tutorial-pure-css3-navigation-menu/</link>
		<comments>http://praveenfrancis.com/tutorials/tutorial-pure-css3-navigation-menu/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 11:15:45 +0000</pubDate>
		<dc:creator>Praveen</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[css gradients]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[rounded corner]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://praveenfrancis.com/?p=147</guid>
		<description><![CDATA[Designing a rich looking navigation is not the herculean task it seems to be. Here&#8217;s another easy tutorial which will help you design a navigation bar from scratch using just CSS and no images. Alright, here we go&#8230; The final &#8230; <a href="http://praveenfrancis.com/tutorials/tutorial-pure-css3-navigation-menu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/cap.jpg" alt="CSS3 Navigation Menu Tutorial" /><br />
<strong> Designing a rich looking navigation is not the herculean task it seems to be. Here&#8217;s another easy tutorial which will help you design a navigation bar from scratch using just CSS and no images.<br />
Alright, here we go&#8230;</p>
<p></strong></p>
<h2>The final product</h2>
<p> This is what your nav bar will look like at the end of the tutorial. You only need a basic knowledge of CSS to pull this off, so no worries.</p>
<p><img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/fin-prod.jpg" alt="Final product of CSS3 Nav Menu tutorial" /></p>
<div class="btnsWrap"><a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/css3-navigation.html" target="blank"> See Live Demo!</a> or <a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/css3-navigation.zip"> Download!</a></div>
<h2>The solution</h2>
<p> Menus driven purely by CSS have always been the ideal solution when it comes to navigation. However, we all know that we have been forced to use simplistic designs or images because of limited CSS and browser capabilities sometime or the other. You&#8217;ll be happy to know that with the advent of CSS3, it is easier than ever to create flexible, and simple yet creditably good looking navigation menus. </p>
<p>Please note that this will work only on modern browsers, but it does have a fall-back for IE and other older browsers.</p>
<h2>The markup</h2>
<p>Let&#8217;s start with the html markup for the navigation. We&#8217;ll keep it very simple and straightforward here. </p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cssTabs&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;active&quot;</span>&gt;</span>Home<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>About us<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Our Services<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>Contact us<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>           
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div>

<h2>Step 1 &#8211; The basic CSS</h2>
<p>Now, let&#8217;s style the navigation with the basic parameters. </p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">ul<span style="color: #6666ff;">.cssTabs</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#848383</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#606060</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">75px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">405px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #6666ff;">.cssTabs</span> <span style="color: #00AA00;">&gt;</span> li <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#989898</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#3a3a3a</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#606060</span><span style="color: #00AA00;">;</span>	
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>	
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">1px</span> <span style="color: #933;">-1px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
ul<span style="color: #6666ff;">.cssTabs</span> <span style="color: #00AA00;">&gt;</span> li<span style="color: #6666ff;">.active</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ededed</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><strong>Done? Great! It should look like this now:</strong><br />
<img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/step1.jpg" alt="CSS3 Nav Menu tutorial" /><br />
This should be pretty self-explanatory. This is also what the fall-back will look like.</p>
<h2>Step 2 &#8211; Gradients, box-shadows and rounded corners </h2>
<p>We now get down to the main business of using CSS3 capabilities. Add the following code to the <em>ul.cssTabs</em> class:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-moz-linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span> <span style="color: #933;">100%</span> 90deg<span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#737373</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#9a9a9a</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-webkit-</span>gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#9a9a9a</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#737373</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
&nbsp;
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#dfdfdf</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#dfdfdf</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#dfdfdf</span><span style="color: #00AA00;">;</span>
&nbsp;
	border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>If you are not sure how this works, check out my <a href="http://praveenfrancis.com/tutorials/tutorial-css3-buttons-without-images/" target="blank">earlier tutorial </a> which explains this in detail.</p>
<p><img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/step3.jpg" alt="Step 2 of the tutorial" /></p>
<h2>Step 3 &#8211; Styling the list items</h2>
<p>Using the techniques described above, we add these styles to the list items (ul.cssTabs > li):</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-moz-linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span> <span style="color: #933;">100%</span> 90deg<span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#9a9a9a</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#888888</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-webkit-</span>gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#888888</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#9a9a9a</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
&nbsp;
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#dfdfdf</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#dfdfdf</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#dfdfdf</span><span style="color: #00AA00;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#d3d3d3</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>As you can see, the text shadow is added to highlight the text. </p>
<p><img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/step4.jpg" alt="Step 3 of the tutorial" /></p>
<h2>The final step &#8211; Active list</h2>
<p>And finally, let&#8217;s add a different style to the active list item (ul.cssTabs > li.active).</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-moz-linear-</span>gradient<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span> <span style="color: #933;">100%</span> 90deg<span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f0f0f0</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#d1d1d1</span><span style="color: #00AA00;">&#41;</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:-webkit-</span>gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#d1d1d1</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#f0f0f0</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span> !important<span style="color: #00AA00;">;</span>
&nbsp;
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>	
&nbsp;
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span></pre></div></div>

<p><img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/step5.jpg" alt="Step 4 of the tutorial" /></p>
<h2>Conclusion</h2>
<p>Like what you see? Click on the download button to get the code. It also includes three different color schemes. And try out your own colors too!<br />
Have fun and ciao for now.<br />
<img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/all-colors.jpg" alt="Final css3 navigation" /></p>
<div class="btnsWrap"><a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/css3-navigation.html" target="blank"> See Live Demo!</a> or <a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/css3-navigation.zip"> Download!</a></div>
]]></content:encoded>
			<wfw:commentRss>http://praveenfrancis.com/tutorials/tutorial-pure-css3-navigation-menu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tutorial &#8211; CSS3 Buttons with no images</title>
		<link>http://praveenfrancis.com/tutorials/tutorial-css3-buttons-without-images/</link>
		<comments>http://praveenfrancis.com/tutorials/tutorial-css3-buttons-without-images/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 17:56:30 +0000</pubDate>
		<dc:creator>Praveen</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[css gradients]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[rounded corner]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://praveenfrancis.com/?p=113</guid>
		<description><![CDATA[This tutorial will cover creating CSS buttons with minimal markup and absolutely no images. <a href="http://praveenfrancis.com/tutorials/tutorial-css3-buttons-without-images/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>This tutorial covers the creation of CSS buttons with minimal markup and absolutely no images. </strong></p>
<h2>The final product</h2>
<p> This is what we will be creating by the end of this tutorial. You only need some very basic knowledge in CSS to start rolling.</p>
<p><img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/01/01-1.png" alt="Final product of the tutorial" /></p>
<div class="btnsWrap"><a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/css3-buttons.html" target="blank"> See Live Demo!</a> or <a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/css3-buttons.zip"> Download!</a></div>
<h2>The solution.</h2>
<p>The problem with creating rich-looking buttons for the web is that it tends to get really complicated and tricky. Designers have long dreaded rounded corners and gradients and that meant that they had to resort to using a few, if not several, images or jquery to achieve the effect. Techniques like <a href="http://www.alistapart.com/articles/slidingdoors/">sliding doors</a> are cumbersome and not easily customizable.</p>
<p>The CSS3 solution is elegant and simple, but the catch is that it only works on modern browsers (You didn&#8217;t really think that this will work on IE, did you?). But it will will fall-back gracefully on IE and other older browsers.</p>
<h2>The markup.</h2>
<p>Let&#8217;s start with the html markup. This is pretty simple and neat. And of course, you can use this on anchors, divs or basically any other element.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">button</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;blue-btn&quot;</span>&gt;</span>Click here<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">button</span>&gt;</span></pre></div></div>

<h2>Step 1 &#8211; The basic CSS</h2>
<p>We start out with the basic CSS for our button.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">button.blue-btn<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#2e8ce3</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
  	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>  
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#73c8f0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><strong>It should look like this now:</strong><br />
<img class="tutImg" src="http://praveenfrancis.com/dev/wp-content/uploads/2011/01/02.png" alt="Step 1 of the tutorial" /><br />
This is also how the fall-back will look like.</p>
<h2>Step 2 &#8211; Gradients</h2>
<p>Lets add those gradients now:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span> <span style="color: #933;">100%</span> 90deg<span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#2e8ce3</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#73c2fd</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #933;">0%</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#73c2fd</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#2e8ce3</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>This basically declares a linear gradient for the mozilla and webkit based browsers. Note that the order of the start and end colors differ for the two methods.</p>
<p><img class="tutImg" src="http://praveenfrancis.com/dev/wp-content/uploads/2011/01/03.png" alt="Step 2 of the tutorial" /></p>
<h2>Step 3 &#8211; Rounded corners</h2>
<p>Add these for the rounded corners:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>This will ensure that the rounded corners will work across all the modern browsers.</p>
<p><img class="tutImg" src="http://praveenfrancis.com/dev/wp-content/uploads/2011/01/04.png" alt="Step 3 of the tutorial" /></p>
<h2>Step 4 &#8211; Inner shadow</h2>
<p>Let us add a white inset to have that protruding effect.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>This is the box shadow CSS3 property to achieve the shadow effect. The &#8216;inset&#8217; parameter allows us to have inner-shadows. This will add a 1px white offset at the top of the button inside the border.</p>
<p>Add a darker color for the bottom border for better contrast:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">border-bottom-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#196ebb</span><span style="color: #00AA00;">;</span></pre></div></div>

<p><img class="tutImg" src="http://praveenfrancis.com/dev/wp-content/uploads/2011/01/05.png" alt="Step 4 of the tutorial" /></p>
<h2>Final step &#8211; Text shadow</h2>
<p>This is optional, but it will add a nice contrast to our text.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#196ebb</span><span style="color: #00AA00;">;</span></pre></div></div>

<p><img class="tutImg" src="http://praveenfrancis.com/dev/wp-content/uploads/2011/01/06.png" alt="Step 6 of the tutorial" /></p>
<h2>Conclusion</h2>
<p>Feel free to experiment and try dabbling with other colors.<br />
<img src="http://praveenfrancis.com/dev/wp-content/uploads/2011/01/final.png" alt="Final all css3 buttons" /><br />
<strong>I hope that you found this tutorial helpful. Please leave your comments/suggestions below. </strong></p>
<div class="btnsWrap"><a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/css3-buttons.html" target="blank"> See Live Demo!</a> or <a class="genBtn" href="http://praveenfrancis.com/dev/wp-content/uploads/2011/02/css3-buttons.zip"> Download!</a></div>
<p>Check out my <a href="http://praveenfrancis.com/tutorials/tutorial-pure-css3-navigation-menu/">other tutorial</a> covering the same subject. </p>
]]></content:encoded>
			<wfw:commentRss>http://praveenfrancis.com/tutorials/tutorial-css3-buttons-without-images/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>This is Red 5, I’m going in!</title>
		<link>http://praveenfrancis.com/personal/this-is-red-5-i%e2%80%99m-going-in/</link>
		<comments>http://praveenfrancis.com/personal/this-is-red-5-i%e2%80%99m-going-in/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 07:14:40 +0000</pubDate>
		<dc:creator>Praveen</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://praveenfrancis.com/dev/?p=94</guid>
		<description><![CDATA[It's here, finally. My design blog is live after months of speculation. <a href="http://praveenfrancis.com/personal/this-is-red-5-i%e2%80%99m-going-in/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://praveenfrancis.com/dev/wp-content/uploads/2010/12/star-wars.jpg" alt="Star wars welcome" /><br />
<strong>It&#8217;s here, finally. My design blog is live after months of speculation.</strong></p>
<h2>Who is this guy?</h2>
<p>For those who are unfamiliar with me, I am a 24-year-old web designer from <a href="http://en.wikipedia.org/wiki/Chennai" target="_blank"> Chennai</a>, India. I specialize in designing usable, rich interfaces for the web.</p>
<h2>What is this about, then?</h2>
<p>Well, apart from showcasing my <a href="http://praveenfrancis.com/work/">portfolio</a>, this blog will be about sharing my experiences as a web designer, tips for rookies, killer tutorials I stumble upon (I intend to write some tuts on my own too), design resources that fellow designers will find useful and the like. So there you go, yet another design blog, with a difference.</p>
<h2>How can I be involved?</h2>
<p>This is what I am really excited about, I mean, that&#8217;s the whole point of a blog anyway, right? I have a pretty good commenting system developed right below (Facebook connect is glitchy, bear with me), you are welcome to post your thoughts, suggestions or critiques. You can also email me directly from the <a href="http://praveenfrancis.com/contact/">contact page</a> for any queries you might have. And you can share my posts on facebook, twitter or delicious etc on the share panel above the comments.</p>
<h2>Nice!</h2>
<p>So, there you go, this blog in a nutshell, let&#8217;s do this thing!<br />
PS: Sorry about the bromidic star wars reference in the title (Did I mention I love star wars?)</p>
]]></content:encoded>
			<wfw:commentRss>http://praveenfrancis.com/personal/this-is-red-5-i%e2%80%99m-going-in/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

