<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Webstuffshare</title>
	
	<link>http://www.webstuffshare.com</link>
	<description>webstuffshare.com is made and maintain by Hidayat Sagita in order to share information and all about web stuff (free icons, plugins, open source applications, recent web-trends, etc.) needed by web developers, web designers, bloggers and free-stuff addict.</description>
	<lastBuildDate>Sat, 26 Jun 2010 11:01:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/webstuffsharecom" /><feedburner:info uri="webstuffsharecom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><image><link>http://webstuffshare.com</link><url>http://www.webstuffshare.com/wp-content/themes/webstuffshare/images/default-gravatar.jpg</url><title>Webstuffshare - Worth Sharing Bookmarked Webstuff</title></image><feedburner:emailServiceId>webstuffsharecom</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>[CodeSnippet] CSS3 Flying Menu</title>
		<link>http://feedproxy.google.com/~r/webstuffsharecom/~3/IzVq034jVCA/</link>
		<comments>http://www.webstuffshare.com/2010/06/codesnippet-css3-flying-menu/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 13:41:28 +0000</pubDate>
		<dc:creator>Hidayat Sagita</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Code Snippet]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Menu]]></category>

		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2193</guid>
		<description><![CDATA[
This is a request post from my reader. He asks me how to create a simple menu that have a flying effect when user hovering them using only CSS. As we know CSS3 is more powerful with its transition property, it help us creating animation without any JavaScript or even Flash help. We&#8217;ll use them [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.webstuffshare.com/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/2193.jpg&amp;w=&amp;h=&amp;zc=1&amp;ft=' alt='post thumbnail' /></p>
<p>This is a request post from my reader. He asks me how to create a simple menu that have a flying effect when user hovering them using only CSS. As we know CSS3 is more powerful with its transition property, it help us creating animation without any JavaScript or even Flash help. We&#8217;ll use them for creating the flying effect and here is the result. Enjoy!<br />
<span id="more-2193"></span></p>
<div class="button-show-implementation"><a href="http://webstuffshare.com/demo/CSSFlyMenu/">Show Implementation</a></div>
<div class="button-download-source"><a href="http://www.webstuffshare.com/download/CSSFlyMenu.zip">Download Source</a></div>
<div class="cleaner"></div>
<p>Firstly, we need to create list menu using unordered list element :</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">/* Sample #1 */
&lt;ul id=&quot;fly-menu&quot;&gt;
	&lt;li&gt;
		&lt;a href=&quot;http://www.webstuffshare.com&quot;&gt;
			&lt;img src=&quot;images/heart.png&quot; alt=&quot;webstuffshare&quot; /&gt; Webstuffshare Home
		&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;
		&lt;a href=&quot;http://feeds.feedburner.com/webstuffsharecom&quot;&gt;
			&lt;img src=&quot;images/rss.png&quot; alt=&quot;rss&quot; /&gt; Subscribe RSS Feed
		&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;
		&lt;a href=&quot;http://feedburner.google.com/fb/a/mailverify?uri=webstuffsharecom&quot;&gt;
			&lt;img src=&quot;images/email.png&quot; alt=&quot;email&quot; /&gt; Subscribe Email
		&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;
		&lt;a href=&quot;http://twitter.com/hdytsgt&quot;&gt;
			&lt;img src=&quot;images/twitter.png&quot; alt=&quot;twitter&quot; /&gt; Follow Twitter
		&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
/* Sample #2 */
&lt;ul id=&quot;fly-glow-menu&quot;&gt;
	&lt;li&gt;
		&lt;a href=&quot;http://www.webstuffshare.com&quot;&gt;
			&lt;img src=&quot;images/heart.png&quot; alt=&quot;webstuffshare&quot; /&gt; Webstuffshare Home
		&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;
		&lt;a href=&quot;http://feeds.feedburner.com/webstuffsharecom&quot;&gt;
			&lt;img src=&quot;images/rss.png&quot; alt=&quot;rss&quot; /&gt; Subscribe RSS Feed
		&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;
		&lt;a href=&quot;http://feedburner.google.com/fb/a/mailverify?uri=webstuffsharecom&quot;&gt;
			&lt;img src=&quot;images/email.png&quot; alt=&quot;email&quot; /&gt; Subscribe Email
		&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;
		&lt;a href=&quot;http://twitter.com/hdytsgt&quot;&gt;
			&lt;img src=&quot;images/twitter.png&quot; alt=&quot;twitter&quot; /&gt; Follow Twitter
		&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre></div></div>

<p><br/><br />
They are arranged vertically by default, so we must arrange them horizontally using CSS property &#8216;<strong>float</strong>&#8216; with &#8216;<strong>left</strong>&#8216; value. Next, add CSS transition to make any properties change on it animated, we set the duration in <strong>0.3 seconds</strong> or <strong>300 milliseconds</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.cleaner</span> <span style="color: #00AA00;">&#123;</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;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#fly-menu</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#fly-glow-menu</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1em</span> <span style="color: #993333;">auto</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#fly-menu</span> li<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#fly-glow-menu</span> li <span style="color: #00AA00;">&#123;</span>
&nbsp;
		<span style="color: #808080; font-style: italic;">/* Basic style */</span>
		<span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">.5em</span><span style="color: #00AA00;">;</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;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#cacaca</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</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>
&nbsp;
		<span style="color: #808080; font-style: italic;">/* Add shadow */</span>
		-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .3<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .3<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .3<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
&nbsp;
		<span style="color: #808080; font-style: italic;">/*
			Add animation using transition
			-webkit : Safari &amp;amp; Chrome.
			-moz : Firefox
			-o : Opera
		*/</span>
		-webkit-transition<span style="color: #00AA00;">:</span> .3s ease-in-out<span style="color: #00AA00;">;</span>
  		-moz-transition<span style="color: #00AA00;">:</span> .3s ease-in-out<span style="color: #00AA00;">;</span>
  		-o-transition<span style="color: #00AA00;">:</span> .3s ease-in-out<span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><br/><br />
Since each menu is having float with left value, we need a cleaner element to make another element not floating into the menu.<br />
The last are reading hover event on each menu by adding pseudo property <strong>:hover</strong> and change the &#8216;<strong>margin-top</strong>&#8216; properties into -1em. This will make our menu fly upwards when user hovering them.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#fly-menu</span> li<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-1em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p align="center"><a href="http://webstuffshare.com/demo/CSSFlyMenu/"><img src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-22.png" alt="Picture 2" title="Picture 2" width="500" height="58" class="aligncenter size-full wp-image-2197" /></a></p>
<p><br/></p>
<p>We can also make the animation nicer by changing menu&#8217;s background color and modify its box shadow properties or anything we need.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#fly-glow-menu</span> li<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-1em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
&nbsp;
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .3<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .3<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .3<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p align="center"><a href="http://webstuffshare.com/demo/CSSFlyMenu/"><img src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-41.png" alt="Picture 4" title="Picture 4" width="500" height="53" class="aligncenter size-full wp-image-2196" /></a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=IzVq034jVCA:19EuxgiHs70:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=IzVq034jVCA:19EuxgiHs70:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=IzVq034jVCA:19EuxgiHs70:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=IzVq034jVCA:19EuxgiHs70:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=IzVq034jVCA:19EuxgiHs70:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=IzVq034jVCA:19EuxgiHs70:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=IzVq034jVCA:19EuxgiHs70:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=IzVq034jVCA:19EuxgiHs70:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=IzVq034jVCA:19EuxgiHs70:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstuffsharecom/~4/IzVq034jVCA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.webstuffshare.com/2010/06/codesnippet-css3-flying-menu/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://www.webstuffshare.com/2010/06/codesnippet-css3-flying-menu/</feedburner:origLink></item>
		<item>
		<title>jQuery Fundamentals</title>
		<link>http://feedproxy.google.com/~r/webstuffsharecom/~3/Tx9Ayfxah-Q/</link>
		<comments>http://www.webstuffshare.com/2010/06/jquery-fundamentals/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 07:04:00 +0000</pubDate>
		<dc:creator>Hidayat Sagita</dc:creator>
				<category><![CDATA[Community News]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2185</guid>
		<description><![CDATA[


&#8220;jQuery is fast becoming a must-have skill for front-end developers. The purpose of this book is to provide an overview of the jQuery JavaScript library; when you&#8217;re done with the book, you should be able to complete basic tasks using jQuery, and have a solid basis from which to continue your learning.
&#8220;
This is a very [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.webstuffshare.com/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/2185.jpg&amp;w=&amp;h=&amp;zc=1&amp;ft=' alt='post thumbnail' /></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-2189" title="Picture 2" src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-21.png" alt="Picture 2" width="250" height="89" /></p>
<p><br/></p>
<blockquote style="font-style:italic; margin-left:2em;margin-bottom:1em;"><p>&#8220;jQuery is fast becoming a must-have skill for front-end developers. The purpose of this book is to provide an overview of the jQuery JavaScript library; when you&#8217;re done with the book, you should be able to complete basic tasks using jQuery, and have a solid basis from which to continue your learning.<br />
&#8220;</p></blockquote>
<p>This is a very handy and superb useful handbook from <a href="http://github.com/rmurphey/jqfundamentals" target="_blank">Rebecca Murphey</a> under the <a href="http://creativecommons.org/licenses/by-sa/3.0/us/" target="_blank">Creative Commons Attribution-Share Alike 3.0</a> license. Each topic described very clear so you can follow easily even you&#8217;re new on JavaScript.<br />
<a title="Read the tutorial" href="http://www.rebeccamurphey.com/jqfundamentals/" target="_blank">Read the tutorial.</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=Tx9Ayfxah-Q:8n3KhNX379E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=Tx9Ayfxah-Q:8n3KhNX379E:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=Tx9Ayfxah-Q:8n3KhNX379E:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=Tx9Ayfxah-Q:8n3KhNX379E:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=Tx9Ayfxah-Q:8n3KhNX379E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=Tx9Ayfxah-Q:8n3KhNX379E:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=Tx9Ayfxah-Q:8n3KhNX379E:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=Tx9Ayfxah-Q:8n3KhNX379E:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=Tx9Ayfxah-Q:8n3KhNX379E:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstuffsharecom/~4/Tx9Ayfxah-Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.webstuffshare.com/2010/06/jquery-fundamentals/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.webstuffshare.com/2010/06/jquery-fundamentals/</feedburner:origLink></item>
		<item>
		<title>Create Your Own Dashboard Menu</title>
		<link>http://feedproxy.google.com/~r/webstuffsharecom/~3/8CjA7ZGBe-A/</link>
		<comments>http://www.webstuffshare.com/2010/06/create-your-own-dashboard-menu/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 13:57:27 +0000</pubDate>
		<dc:creator>Hidayat Sagita</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Menu]]></category>

		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2167</guid>
		<description><![CDATA[
In this tutorial we are going to create our own dashboard menu as in Leopard dashboard. Dashboard menu in Leopard usually uses as a container for a tons of widgets we have and that will be nice if we have one on our web application. First, take a look at below demo to know the [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.webstuffshare.com/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/2167.jpg&amp;w=&amp;h=&amp;zc=1&amp;ft=' alt='post thumbnail' /></p>
<p>In this tutorial we are going to create our own dashboard menu as in Leopard dashboard. Dashboard menu in Leopard usually uses as a container for a tons of widgets we have and that will be nice if we have one on our web application. First, take a look at below demo to know the result we want to build.<br />
<span id="more-2167"></span></p>
<div class="button-show-implementation"><a href="http://webstuffshare.com/demo/jQueryCSSDashboard/">Show Implementation</a></div>
<div class="button-download-source"><a href="http://www.webstuffshare.com/download/jQueryCSSDashboard.zip">Download Source</a></div>
<div class="cleaner"></div>
<p><strong>Basic Technique</strong><br />
The dashboard will be hidden out of the webpage, in this case on the bottom of the page. We can do that by setting the dahboard position into absolute, put its bottom position with minus point and set the body&#8217;s overflow properties into hidden.</p>
<p>The problem with this technique is our document content will also hidden since the body&#8217;s overflow properties was set into hidden, we can solve them by moving the dashboard into the top of the page, but in this demo we&#8217;ll continue to put them on the bottom.</p>
<p><strong>Expected Result:</strong><br/></p>
<p align="center"><img src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-5.png" alt="Picture 5" title="Picture 5" width="500" height="292" class="aligncenter size-full wp-image-2174" /></p>
<p><br/><br />
<strong>Build Dashboard</strong><br />
We&#8217;ll separate the dashboard contents into 3 parts : toggle for showing and hiding dahsboard, dashboard menu for wrapping widgets list and dot container for wrapping dashboard&#8217;s background with metallic effect. Wrap them all on one div (as a container) so we can easily move these 3 parts only by styling this div.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;dashboard&quot;&gt;
	&lt;img src=&quot;images/toggle.png&quot; id=&quot;toggle&quot; /&gt;
	&lt;div id=&quot;dashboard-menu&quot;&gt;
		&lt;!-- list of widgets --&gt;
	&lt;/div&gt;
	&lt;div id=&quot;dot-container&quot;&gt;
		&lt;!-- dots groups --&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre></div></div>

<p>Now we will styling them. Set the dashboard&#8217;s width into 100%, position absolute, bottom into 0px and also add inset box shadow into them to make emboss effect. Put the toggle&#8217;s position on top of the dashboard to make it always visible even the dashboard is hidden.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#dashboard</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Arial<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#a3acb7</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">20px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">20px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">20px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#dashboard-menu</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#dot-container</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">200</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</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;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#toggle</span> <span style="color: #00AA00;">&#123;</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-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-3em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</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>Expected Result:</strong><br/></p>
<p align="center"><img src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-6.png" alt="Picture 6" title="Picture 6" width="500" height="291" class="aligncenter size-full wp-image-2175" /></p>
<p><br/><br />
<strong>Create Metallic Effect With CSS and jQuery</strong><br />
The most interesting technique is how to create metallic effect on dashboard&#8217;s background using only CSS and jQuery. The effect are a groups of black circle div with white shadow on it, we can repeat them horizontally until it&#8217;s equal to document width and after that repeat them vertically. Move some pixel the odd dots group&#8217;s position to make it more real.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!-- example : 1 dot --&gt;
&lt;div id=&quot;dot-container&quot;&gt;
	&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;
&lt;/div&gt;
&nbsp;
&lt;!-- example : dot groups --&gt;
&lt;div id=&quot;dot-container&quot;&gt;
	&lt;div style=&quot;margin-left:0em; margin-bottom: -.5em&quot;&gt;
		&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;
	&lt;/div&gt;
	&lt;div style=&quot;margin-left:0.4em; margin-bottom: -.5em&quot;&gt;
		&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.dot</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;">#1f1f1f</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">4px</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>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">.3em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><strong>Expected Result:</strong><br/></p>
<p align="center"><img src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture.jpg" alt="Picture" title="Picture" width="294" height="311" class="aligncenter size-full wp-image-2176" /></p>
<p>We won&#8217;t create each dot by copy and paste the span since jQuery can generate and repeat them dynamically. Repeat horizontally the dots until it&#8217;s equal to document&#8217;s width and after that repeat them vertically. The last thing to do is insert them into dot container div.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//Create base variable, check document width and count how much dot per line.</span>
<span style="color: #003366; font-weight: bold;">var</span> a<span style="color: #339933;">,</span> b<span style="color: #339933;">,</span> element <span style="color: #339933;">=</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">;</span>
documentWidth		<span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
dotLength			<span style="color: #339933;">=</span> parseInt<span style="color: #009900;">&#40;</span>documentWidth<span style="color: #339933;">/</span><span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//Loop dot per line</span>
<span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>a<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> a<span style="color: #339933;">&lt;=</span> <span style="color: #CC0000;">11</span><span style="color: #339933;">;</span> a<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//Check is even or odd to add some pixel to the margin left</span>
	className<span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>a<span style="color: #339933;">%</span>2<span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">'0'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">'0.4em'</span><span style="color: #339933;">;</span>
	element 	<span style="color: #339933;">=</span> element <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;div style=&quot;margin-left:'</span><span style="color: #339933;">+</span>className<span style="color: #339933;">+</span><span style="color: #3366CC;">'; margin-bottom: -.5em&quot;&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//Loop to create the dot</span>
		<span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>b<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> b<span style="color: #339933;">&lt;=</span>dotLength<span style="color: #339933;">;</span> b<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			element <span style="color: #339933;">=</span> element <span style="color: #339933;">+</span> <span style="color: #3366CC;">'<span style="color: #000099; font-weight: bold;">\t</span>&lt;span class=&quot;dot&quot;&gt;&amp;nbsp;&lt;/span&gt;'</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
	element <span style="color: #339933;">=</span> element <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//Insert dots on #dot-container</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#dot-container'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>element<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><br/><br />
<strong>Put The Widgets</strong><br />
The dashboard was setted perfectly, now we&#8217;ll put the widgets list. Put each widgets on unordered list and add its widget name below the widget.</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;dashboard-menu&quot;&gt;
	&lt;ul&gt;
		&lt;li&gt;
		&lt;img src=&quot;images/gauge.png&quot; /&gt; &lt;br/&gt; Dashboard
		&lt;/li&gt;
		&lt;li&gt;
		&lt;img src=&quot;images/mail.png&quot; /&gt; &lt;br/&gt; E-Mail Client
		&lt;/li&gt;
		&lt;li&gt;
		&lt;img src=&quot;images/calendar.png&quot; /&gt; &lt;br/&gt; Calendar
		&lt;/li&gt;
		&lt;li&gt;
		&lt;img src=&quot;images/map.png&quot; /&gt; &lt;br/&gt; Geolocation
		&lt;/li&gt;
		&lt;li&gt;
		&lt;img src=&quot;images/note.png&quot; /&gt; &lt;br/&gt; Sticky Note
		&lt;/li&gt;
		&lt;li&gt;
		&lt;img src=&quot;images/wireless.png&quot; /&gt; &lt;br/&gt; AirPort
		&lt;/li&gt;
		&lt;li&gt;
		&lt;img src=&quot;images/calculator.png&quot; /&gt; &lt;br/&gt; Calculator
		&lt;/li&gt;
	&lt;/ul&gt;
&lt;/div&gt;</pre></div></div>

<p><strong>Expected Result:</strong><br/></p>
<p align="center"><img src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-12.png" alt="Picture 12" title="Picture 12" width="456" height="213" class="aligncenter size-full wp-image-2177" /></p>
<p><br/><br />
The list still appear vertical, now we must set them into horizontal orientation by set its display properties into inline-block. Add the distance on each widget and set its margin properly.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#dashboard-menu</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-65em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">2</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #cc00cc;">#dashboard-menu</span> ul li <span style="color: #00AA00;">&#123;</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;">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;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2em</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1em</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#313235</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;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#fff</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;
	li img <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">.7em</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</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>Expected Result:</strong><br/></p>
<p align="center"><img src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-13.png" alt="Picture 13" title="Picture 13" width="500" height="98" class="aligncenter size-full wp-image-2178" /></p>
<p><br/><br />
We want the widgets is moving from left to right when the dashboard is show up, so we need to set its left property into -65em.</p>
<p><br/><br />
<strong>Hide and Seek</strong><br />
Now we&#8217;ll add some jQuery code to the dashboard to make it able showing and hiding. Firstly we must hide the dashboard position by setting its position with some minus pixels, so it will be hidden.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#dashboard</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Arial<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#a3acb7</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">150px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">20px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">20px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #993333;">inset</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">20px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> .6<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-150px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Add toggle function to the image toggle, the first function will rotate the image toggle by set its rotate property into 45 degree (we need zachstronaut&#8217;s plugin for doing this), show the dashboard by set its bottom property value into 0px and show the menu by set its left into 3em. These action is in animate function so any change will have animation. For the second function we just need to revert these value.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//Add event toggle on #toggle</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#toggle'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">toggle</span><span style="color: #009900;">&#40;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//Rotate toggle</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>rotate <span style="color: #339933;">:</span> <span style="color: #3366CC;">'-=45deg'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#dashboard'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>bottom <span style="color: #339933;">:</span> <span style="color: #3366CC;">'0px'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#dashboard-menu'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>left <span style="color: #339933;">:</span> <span style="color: #3366CC;">'3em'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//Revert rotate toggle</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>rotate <span style="color: #339933;">:</span> <span style="color: #3366CC;">'0deg'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#dashboard'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>bottom <span style="color: #339933;">:</span> <span style="color: #3366CC;">'-150px'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">700</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#dashboard-menu'</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">stop</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>left <span style="color: #339933;">:</span> <span style="color: #3366CC;">'-65em'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>That&#8217;s it we just made our simple dashboard menu, hope you enjoy my post and thank your for reading! <img src='http://www.webstuffshare.com/wp-content/plugins/smilies-themer/Silk/emoticon_smile.png' alt=':)' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=8CjA7ZGBe-A:LYQgmYYn8Ug:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=8CjA7ZGBe-A:LYQgmYYn8Ug:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=8CjA7ZGBe-A:LYQgmYYn8Ug:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=8CjA7ZGBe-A:LYQgmYYn8Ug:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=8CjA7ZGBe-A:LYQgmYYn8Ug:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=8CjA7ZGBe-A:LYQgmYYn8Ug:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=8CjA7ZGBe-A:LYQgmYYn8Ug:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=8CjA7ZGBe-A:LYQgmYYn8Ug:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=8CjA7ZGBe-A:LYQgmYYn8Ug:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstuffsharecom/~4/8CjA7ZGBe-A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.webstuffshare.com/2010/06/create-your-own-dashboard-menu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://www.webstuffshare.com/2010/06/create-your-own-dashboard-menu/</feedburner:origLink></item>
		<item>
		<title>RGraph : HTML5 Canvas Graph Library</title>
		<link>http://feedproxy.google.com/~r/webstuffsharecom/~3/jI8ruoFRGQ4/</link>
		<comments>http://www.webstuffshare.com/2010/06/rgraph-html5-canvas-graph-library/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 11:27:30 +0000</pubDate>
		<dc:creator>Hidayat Sagita</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Charts]]></category>
		<category><![CDATA[Free Stuff]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2160</guid>
		<description><![CDATA[

RGraph is a HTML5 canvas graph library based on the canvas tag. Like most graph library, RGraph support wide variety of graph types including bar chart, pie chart, radar chart, etc. The graph quality also have a good quality despite using HTML5 canvas tag.

Since RGraph using canvas tag and canvas tag allows for two dimensional [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.webstuffshare.com/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/2160.jpg&amp;w=&amp;h=&amp;zc=1&amp;ft=' alt='post thumbnail' /></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-2161" title="Picture 2" src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-2.png" alt="Picture 2" width="465" height="317" /></p>
<p><strong><a href="http://www.rgraph.net/" target="_blank">RGraph</a></strong> is a HTML5 canvas graph library based on the <strong>canvas tag</strong>. Like most graph library, RGraph support wide variety of graph types including bar chart, pie chart, radar chart, etc. The graph quality also have a good quality despite using HTML5 canvas tag.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-2162" title="Picture 4" src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-4.png" alt="Picture 4" width="445" height="205" /></p>
<p>Since RGraph using canvas tag and canvas tag allows for two dimensional drawing using JavaScript, these graphs will appear much faster than the flash-based. RGraph works beautifully on most common browser that has supporting canvas tag including Firefox 3.0+, Chrome 1+, Safari 3+ and Opera 9.5+. Now, take a look at tons of <strong><a href="http://www.rgraph.net/examples/index.html" target="_blank">RGraph result</a></strong>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=jI8ruoFRGQ4:bWju8-GCgh4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=jI8ruoFRGQ4:bWju8-GCgh4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=jI8ruoFRGQ4:bWju8-GCgh4:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=jI8ruoFRGQ4:bWju8-GCgh4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=jI8ruoFRGQ4:bWju8-GCgh4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=jI8ruoFRGQ4:bWju8-GCgh4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=jI8ruoFRGQ4:bWju8-GCgh4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=jI8ruoFRGQ4:bWju8-GCgh4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=jI8ruoFRGQ4:bWju8-GCgh4:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstuffsharecom/~4/jI8ruoFRGQ4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.webstuffshare.com/2010/06/rgraph-html5-canvas-graph-library/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.webstuffshare.com/2010/06/rgraph-html5-canvas-graph-library/</feedburner:origLink></item>
		<item>
		<title>jQuery Plugin : jQuery iPhone UI</title>
		<link>http://feedproxy.google.com/~r/webstuffsharecom/~3/JJSlrWZwChw/</link>
		<comments>http://www.webstuffshare.com/2010/06/jquery-plugin-jquery-iphone-ui/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 05:07:34 +0000</pubDate>
		<dc:creator>Hidayat Sagita</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Free Stuff]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2152</guid>
		<description><![CDATA[


jQuery iPhone UI is a jQuery plugin aims to help us easily create iPhone UI. Just like another jQuery plugin, this plugin allow us doing only three steps to create any iPhone UI : include jQuery framework and this plugin, set up the HTML element and call the plugin function.
jQuery iPhone UI provides some iPhone [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.webstuffshare.com/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/2152.jpg&amp;w=&amp;h=&amp;zc=1&amp;ft=' alt='post thumbnail' /></p>
<p style="text-align: center;"><a href="http://iphone.hohli.com/docs/copy-paste.html"><img class="aligncenter size-full wp-image-2153" title="Picture 8" src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-81.png" border="0" alt="Picture 8" width="441" height="282" /></a></p>
<p><br/></p>
<p><strong><a href="http://iphone.hohli.com/">jQuery iPhone UI</a></strong> is a jQuery plugin aims to help us easily create iPhone UI. Just like another jQuery plugin, this plugin allow us doing only three steps to create any iPhone UI : include jQuery framework and this plugin, set up the HTML element and call the plugin function.<br />
jQuery iPhone UI provides some iPhone UI including Scroll, Tabs, Gallery, Forms (input, password, checkbox, select) and Buttons. You can try them <a href="http://iphone.hohli.com/">at here</a> and here&#8217;s the example : </p>
<p><strong>Code : </strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">   $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
   	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.tabbar&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">iTabs</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;ul class=&quot;tabbar&quot;&gt;
	&lt;li&gt;&lt;a class=&quot;iicon&quot; title=&quot;Mail&quot; href=&quot;#mail&quot;&gt;&lt;em&gt;&lt;/em&gt;Mail&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;iicon&quot; title=&quot;Chat&quot; href=&quot;#chat&quot;&gt;&lt;em&gt;&lt;/em&gt;Chat&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;iicon&quot; title=&quot;Search&quot; href=&quot;#search&quot;&gt;&lt;em&gt;&lt;/em&gt;Search&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a class=&quot;iicon&quot; title=&quot;Options&quot; href=&quot;#options&quot;&gt;&lt;em&gt;&lt;/em&gt;Options&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre></div></div>

<p><strong>Result :</strong><br />
<img class="aligncenter size-full wp-image-2154" title="iTabs" src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/iTabs.png" alt="iTabs" width="320" height="200" /><br/></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=JJSlrWZwChw:jN1X3OWIbf4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=JJSlrWZwChw:jN1X3OWIbf4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=JJSlrWZwChw:jN1X3OWIbf4:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=JJSlrWZwChw:jN1X3OWIbf4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=JJSlrWZwChw:jN1X3OWIbf4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=JJSlrWZwChw:jN1X3OWIbf4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=JJSlrWZwChw:jN1X3OWIbf4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=JJSlrWZwChw:jN1X3OWIbf4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=JJSlrWZwChw:jN1X3OWIbf4:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstuffsharecom/~4/JJSlrWZwChw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.webstuffshare.com/2010/06/jquery-plugin-jquery-iphone-ui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.webstuffshare.com/2010/06/jquery-plugin-jquery-iphone-ui/</feedburner:origLink></item>
		<item>
		<title>Simple CSS3 Dropdown Menu</title>
		<link>http://feedproxy.google.com/~r/webstuffsharecom/~3/WouXfFpkNXU/</link>
		<comments>http://www.webstuffshare.com/2010/06/simple-css3-dropdown-menu/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 16:30:46 +0000</pubDate>
		<dc:creator>Hidayat Sagita</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Menu]]></category>

		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2129</guid>
		<description><![CDATA[
As we know, CSS3 has many good features for help us creating more sweet User Interface. One of them is box shadow, it helps us adding shadow effect on each styled element. You must be familiar with drop down menu with shadow effect on it, I usually add the effect using some images but now [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.webstuffshare.com/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/2129.jpg&amp;w=&amp;h=&amp;zc=1&amp;ft=' alt='post thumbnail' /></p>
<p>As we know, CSS3 has many good features for help us creating more sweet User Interface. One of them is box shadow, it helps us adding shadow effect on each styled element. You must be familiar with drop down menu with shadow effect on it, I usually add the effect using some images but now we&#8217;ll create that one using pure CSS.<br />
<span id="more-2129"></span></p>
<div class="button-show-implementation"><a href="http://webstuffshare.com/demo/CSSDropmenu/">Show Implementation</a></div>
<div class="button-download-source"><a href="http://www.webstuffshare.com/download/CSSDropmenu.zip">Download Source</a></div>
<div class="cleaner"></div>
<p><strong>Drop Down Technique</strong><br />
To create drop down menu like the demo we can use a div for the menu container and an unordered list for the menu. Wrap the unordered list on the div and hide them, we&#8217;ll only show the menu when user hovering the div. Take a look at following image : </p>
<p align="center"><img src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-1.jpg" alt="Picture 1" title="Picture 1" width="500" height="501" class="aligncenter size-full wp-image-2136" /></p>
<p>As you mention above, the unordered list (the menu) is hidden, positioned inside the div and under the text &#8220;Please choose following menu&#8221;. So when the user hover the menu container the menu will have sub menu below it.<br/><br/></p>
<p><strong>The Object and Its Style</strong><br />
As I said above the menu container will contains unordered list as the menu, so we will wrap the unordered list with the div :</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;drop-menu&quot;&gt;
	&lt;span class=&quot;plus&quot;&gt;+&lt;/span&gt; &amp;nbsp; Please choose following menu
	&lt;ul class=&quot;sub-menu&quot;&gt;
		&lt;li&gt;
			&lt;a href=&quot;http://feeds.feedburner.com/webstuffsharecom&quot;&gt;
				&lt;img src=&quot;images/rss.png&quot; border=&quot;0&quot; alt=&quot;rss&quot; /&gt; Subscribe RSS Feed
			&lt;/a&gt;
		&lt;/li&gt;
		&lt;li&gt;
			&lt;a href=&quot;http://feedburner.google.com/fb/a/mailverify?uri=webstuffsharecom&quot;&gt;
				&lt;img src=&quot;images/email.png&quot; border=&quot;0&quot; alt=&quot;email&quot; /&gt; Subscribe Email Subscription
			&lt;/a&gt;
		&lt;/li&gt;
		&lt;li&gt;
			&lt;a href=&quot;http://twitter.com/hdytsgt&quot;&gt;
				&lt;img src=&quot;images/twitter.png&quot; border=&quot;0&quot; alt=&quot;twitter&quot;/&gt; Follow My Twitter
			&lt;/a&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
&lt;/div&gt;</pre></div></div>

<p align="center"><img src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-6.jpg" alt="Picture 6" title="Picture 6" width="303" height="181" class="aligncenter size-full wp-image-2137" /></p>
<p><br/><br />
The important thing is we must fixed the menu container&#8217;s height (class name : <strong>drop-menu</strong>) so no matter how much list (class name : <strong>sub-menu</strong>) element inside, its height will not change. We can also make it more cute by set up its padding, font size, border and also the cursor property.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.drop-menu</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</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;">10px</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;">22px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">max-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</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: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#f6f0e4</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><strong>Expected Result:</strong><br/></p>
<p align="center"><img src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-7.png" alt="Picture 7" title="Picture 7" width="451" height="72" class="aligncenter size-full wp-image-2138" /></p>
<p><br/><br />
We need an hover event in the menu container for showing up the menu, we can use CSS pseudo-class <strong>:hover</strong>. Since we want to show the menu by menu container hover event we can use CSS nesting :</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.drop-menu</span><span style="color: #3333ff;">:hover </span><span style="color: #6666ff;">.sub-menu</span> <span style="color: #00AA00;">&#123;</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: #00AA00;">&#125;</span></pre></div></div>

<p>Next is styling the menu, set its width, background and padding equal to its parent. Add a shadow effect by setting its <strong>box-shadow</strong> property, set <strong>x-axis</strong> to <strong>0px</strong>, <strong>y-axis</strong> to <strong>13px</strong>, <strong>blur</strong> to <strong>25px</strong> and <strong>shadow color</strong> to <strong>black</strong> with <strong>20% alpha</strong>. This will make the shadow has a gradient effect.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.sub-menu</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-11px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">13px</span> <span style="color: #933;">25px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">13px</span> <span style="color: #933;">25px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">13px</span> <span style="color: #933;">25px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.sub-menu</span> li <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">dotted</span> <span style="color: #cc00cc;">#eaeaea</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;">19px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">22px</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: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
		<span style="color: #6666ff;">.sub-menu</span> li img <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">.5em</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.sub-menu</span> li<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">dotted</span> <span style="color: #cc00cc;">#bababa</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><strong>Expected Result:</strong><br/></p>
<p align="center"><img src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-8.png" alt="Picture 8" title="Picture 8" width="467" height="187" class="aligncenter size-full wp-image-2139" /></p>
<p><br/><br />
We also will add a little animation to the plus symbol, if the user hovering menu container we will rotate the plus symbol into 45 degree so it will transform into crosswise.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.plus</span> <span style="color: #00AA00;">&#123;</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>
	-webkit-transition<span style="color: #00AA00;">:</span> .3s ease-in-out<span style="color: #00AA00;">;</span>
  	-moz-transition<span style="color: #00AA00;">:</span> .3s ease-in-out<span style="color: #00AA00;">;</span>
  	-o-transition<span style="color: #00AA00;">:</span> .3s ease-in-out<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.drop-menu</span><span style="color: #3333ff;">:hover </span><span style="color: #6666ff;">.plus</span> <span style="color: #00AA00;">&#123;</span>
	-webkit-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>45deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-moz-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>45deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-o-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>45deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p align="center"><img src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/06/Picture-2.jpg" alt="Picture 2" title="Picture 2" width="228" height="61" class="aligncenter size-full wp-image-2140" /></p>
<p><br/><br />
Wrap them up :</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span> <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;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> 
<span style="color: #00AA00;">&#125;</span>
&nbsp;
body <span style="color: #00AA00;">&#123;</span> 
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Georgia<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff9ec</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;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#464530</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;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#fff</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;">30px</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;">letter-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-1px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">3</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #00AA00;">,</span> a<span style="color: #3333ff;">:visited </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#464530</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> 
<span style="color: #00AA00;">&#125;</span>
&nbsp;
label <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#content</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">800px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</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: #00AA00;">&#125;</span>	
&nbsp;
<span style="color: #6666ff;">.drop-menu</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</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;">10px</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;">22px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">max-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</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: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#f6f0e4</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.plus</span> <span style="color: #00AA00;">&#123;</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>
		-webkit-transition<span style="color: #00AA00;">:</span> .3s ease-in-out<span style="color: #00AA00;">;</span>
  		-moz-transition<span style="color: #00AA00;">:</span> .3s ease-in-out<span style="color: #00AA00;">;</span>
  		-o-transition<span style="color: #00AA00;">:</span> .3s ease-in-out<span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.drop-menu</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.drop-menu</span><span style="color: #3333ff;">:hover </span><span style="color: #6666ff;">.sub-menu</span> <span style="color: #00AA00;">&#123;</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: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.drop-menu</span><span style="color: #3333ff;">:hover </span><span style="color: #6666ff;">.plus</span> <span style="color: #00AA00;">&#123;</span>
		-webkit-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>45deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		-moz-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>45deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		-o-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>45deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.sub-menu</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-11px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
		-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">13px</span> <span style="color: #933;">25px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">13px</span> <span style="color: #933;">25px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">13px</span> <span style="color: #933;">25px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.2</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.sub-menu</span> li <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">dotted</span> <span style="color: #cc00cc;">#eaeaea</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;">19px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">22px</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: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
		<span style="color: #6666ff;">.sub-menu</span> li img <span style="color: #00AA00;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">.5em</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span>
&nbsp;
	<span style="color: #6666ff;">.sub-menu</span> li<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">dotted</span> <span style="color: #cc00cc;">#bababa</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><strong>Conclusion</strong><br />
That&#8217;s it, we have made simple drop down menu using pure CSS. By using CSS3 properties we can tune our element into another level and also we can minimize the use of images. Thanks for reading! <img src='http://www.webstuffshare.com/wp-content/plugins/smilies-themer/Silk/emoticon_smile.png' alt=':)' class='wp-smiley' /> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=WouXfFpkNXU:1ycntRnVzvs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=WouXfFpkNXU:1ycntRnVzvs:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=WouXfFpkNXU:1ycntRnVzvs:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=WouXfFpkNXU:1ycntRnVzvs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=WouXfFpkNXU:1ycntRnVzvs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=WouXfFpkNXU:1ycntRnVzvs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=WouXfFpkNXU:1ycntRnVzvs:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=WouXfFpkNXU:1ycntRnVzvs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=WouXfFpkNXU:1ycntRnVzvs:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstuffsharecom/~4/WouXfFpkNXU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.webstuffshare.com/2010/06/simple-css3-dropdown-menu/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://www.webstuffshare.com/2010/06/simple-css3-dropdown-menu/</feedburner:origLink></item>
		<item>
		<title>Pikachoose : Another jQuery Plugin for Image Gallery</title>
		<link>http://feedproxy.google.com/~r/webstuffsharecom/~3/JDZHDHXwxf0/</link>
		<comments>http://www.webstuffshare.com/2010/05/pikachoose-another-jquery-plugin-for-image-gallery/#comments</comments>
		<pubDate>Wed, 19 May 2010 16:02:01 +0000</pubDate>
		<dc:creator>Hidayat Sagita</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[Gallery]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2123</guid>
		<description><![CDATA[


Pikachoose is a jQuery plugin for image gallery, it has many smooth image transition such as tile effect, horizontal and vertical slide effect and random tile effect. As a regular image gallery plugin, Pikachoose also has some options for slideshows, navigation buttons and auto play.
We can also set some options including thumbnail width, slide speed, [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.webstuffshare.com/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/2123.jpg&amp;w=&amp;h=&amp;zc=1&amp;ft=' alt='post thumbnail' /></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-2124" title="Untitled-1" src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/05/Untitled-12.jpg" alt="Untitled-1" width="500" height="458" /></p>
<p><br/></p>
<p><strong><a href="http://pikachoose.com/" target="_blank">Pikachoose</a></strong> is a jQuery plugin for image gallery, it has many smooth image transition such as tile effect, horizontal and vertical slide effect and random tile effect. As a regular image gallery plugin, Pikachoose also has some options for slideshows, navigation buttons and auto play.</p>
<p>We can also set some options including thumbnail width, slide speed, transition effect, button text,  show caption and delay caption. You can try Pikachoose <strong><a href="http://pikachoose.com/demo/" target="_blank">at here</a></strong>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=JDZHDHXwxf0:lDNrTfvb6bg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=JDZHDHXwxf0:lDNrTfvb6bg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=JDZHDHXwxf0:lDNrTfvb6bg:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=JDZHDHXwxf0:lDNrTfvb6bg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=JDZHDHXwxf0:lDNrTfvb6bg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=JDZHDHXwxf0:lDNrTfvb6bg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=JDZHDHXwxf0:lDNrTfvb6bg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=JDZHDHXwxf0:lDNrTfvb6bg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=JDZHDHXwxf0:lDNrTfvb6bg:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstuffsharecom/~4/JDZHDHXwxf0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.webstuffshare.com/2010/05/pikachoose-another-jquery-plugin-for-image-gallery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.webstuffshare.com/2010/05/pikachoose-another-jquery-plugin-for-image-gallery/</feedburner:origLink></item>
		<item>
		<title>HTML5 Security Cheatsheet</title>
		<link>http://feedproxy.google.com/~r/webstuffsharecom/~3/-tXH47R371Q/</link>
		<comments>http://www.webstuffshare.com/2010/05/html5-security-cheatsheet/#comments</comments>
		<pubDate>Tue, 18 May 2010 13:47:42 +0000</pubDate>
		<dc:creator>Hidayat Sagita</dc:creator>
				<category><![CDATA[Stuff]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.webstuffshare.com/?p=2116</guid>
		<description><![CDATA[


If we are always aware about web security, I think this stuff will be very useful. This is an HTML5 Security Cheatsheet from Mario Heiderich that contains web application security threats, browser bugs, threat example, tips for avoiding the threats, related sources and the browser list from each threat.
The threats and bugs including Cross Site [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.webstuffshare.com/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/2116.jpg&amp;w=&amp;h=&amp;zc=1&amp;ft=' alt='post thumbnail' /></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-2117" title="Untitled-1" src="http://www.webstuffshare.com/http://www.webstuffshare.com/wp-content/uploads/2010/05/Untitled-11.jpg" alt="Untitled-1" width="500" height="189" /></p>
<p><br/></p>
<p>If we are always aware about web security, I think this stuff will be very useful. This is an <strong><a href="http://heideri.ch/jso/" target="_blank">HTML5 Security Cheatsheet</a></strong> from Mario Heiderich that contains web application security threats, browser bugs, threat example, tips for avoiding the threats, related sources and the browser list from each threat.</p>
<p>The threats and bugs including Cross Site Scripting (XSS), JavaScript execution via VIDEO tag poster attribute, link hijacking via BASE tag and JavaScript URI, XML-stylesheets executing JavaScript, Client-side denial of service via repeat templates and <a href="http://heideri.ch/jso/" target="_blank">many more</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=-tXH47R371Q:W6i7edgtGBU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=-tXH47R371Q:W6i7edgtGBU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=-tXH47R371Q:W6i7edgtGBU:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=-tXH47R371Q:W6i7edgtGBU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=-tXH47R371Q:W6i7edgtGBU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=-tXH47R371Q:W6i7edgtGBU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=-tXH47R371Q:W6i7edgtGBU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webstuffsharecom?a=-tXH47R371Q:W6i7edgtGBU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/webstuffsharecom?i=-tXH47R371Q:W6i7edgtGBU:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webstuffsharecom/~4/-tXH47R371Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.webstuffshare.com/2010/05/html5-security-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.webstuffshare.com/2010/05/html5-security-cheatsheet/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic Page Served (once) in 0.917 seconds -->
