<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cameron Baney Design Blog &#187; menu</title>
	<atom:link href="http://blog.cameronbaney.com/tag/menu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cameronbaney.com</link>
	<description>Web design information, tutorials, articles and inspiration</description>
	<lastBuildDate>Tue, 02 Aug 2011 20:05:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Create an Advanced CSS3 Menu</title>
		<link>http://blog.cameronbaney.com/tutorials/advanced-css3-menu/</link>
		<comments>http://blog.cameronbaney.com/tutorials/advanced-css3-menu/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 20:12:25 +0000</pubDate>
		<dc:creator>Cameron Baney</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[menu]]></category>

		<guid isPermaLink="false">http://blog.cameronbaney.com/?p=96</guid>
		<description><![CDATA[Creating a nice looking menu no longer needs all the code and time it use to, thanks to CSS3. This is a tutorial explaining how to create great looking buttons using just CSS3. Version 2.0 has been released. This post will be here for any legacy references, but please refer to Version 2.0 for the [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a nice looking menu no longer needs all the code and time it use to, thanks to CSS3. This is a tutorial explaining how to create great looking buttons using just CSS3.</p>
<p><span id="more-96"></span></p>
<h2 class="notice"><a href="/tutorials/create-an-advanced-css3-menu-version-2/">Version 2.0 has been released</a>. This post will be here for any legacy references, but please refer to <a href="/tutorials/create-an-advanced-css3-menu-version-2/">Version 2.0</a> for the latest.</h2>
<h3>Writing the Markup</h3>
<p>Create an unordered list with some links in it</p>
<pre name="code" class="html">
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Big Link</a></li>
<li><a href="#">Bigger Link</a></li>
<li><a href="#">Biggest link of them all</a></li>
<li><a href="#">Link</a></li>
</ul>
</pre>
<hr/>
<p>Add classes to the elements. In this case, we are going to add the &#8220;cbdb-menu&#8221; to the unordered list, and colors to the list items.</p>
<pre name="code" class="html">
<ul class="cbdb-menu">
<li class="red"><a href="#">Link</a></li>
<li class="green"><a href="#">Big Link</a></li>
<li class="yellow"><a href="#">Bigger Link</a></li>
<li class="cyan"><a href="#">Biggest link of them all</a></li>
<li class="blue"><a href="#">Link</a></li>
</ul>
</pre>
<h3>Styling the buttons with CSS3</h3>
<p>That&#8217;s all the markup you need. Right now your list looks plain, but CSS will make it look sharp. Let&#8217;s start by adding the style for the menu.</p>
<pre name="code" class="css">
.cbdb-menu li {
	display: block;
	float: left;
	line-height: 35px;
	list-style:none;
	margin: 0 5px;
	padding: 0 15px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
	-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}
</pre>
<p>This applies these styles to the list items of the unordered list with the &#8220;cbdb-menu&#8221; class. Notice we are using browser specific tags. Those are the special CSS tags that allow us to achieve the effects we could only get by using images before. The <em>border-radius</em> tag gives the buttons rounded corners, while the <em>box-shadow</em> tag gives them a drop shadow.</p>
<hr/>
<p>With the buttons stylized, the next step is to style the button&#8217;s text. Add the following to your stylesheet.</p>
<pre name="code" class="css">
.cbdb-menu li a {
	color: rgba(255, 255, 255, 0.8);
	font: 18px "Myriad Pro","Lucida Grande",Helvetica,Arial,sans-serif;
        font-weight: bold;
	text-decoration: none;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}
.cbdb-menu a:hover {
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}
li.dark a {
	color: rgba(0, 0, 0, 0.8);
font-weight: bold;
	text-decoration: none;
	text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.4);
}
</pre>
<p>The properties for <em>.cbdb-menu li a</em> make it look more like a button than a link. The text-shadow property lets the button look inset in the button. The <em>dark</em> class is an optional class that you can put on your list items if you want dark text.</p>
<h3>That&#8217;s it!</h3>
<p>Now you have your own super sexy menu built entirely with CSS3. Since these buttons are made with CSS3, they are easily expandable based on how long the link is. The techniques aren&#8217;t limited to creating a menu. The same CSS can be applied to regular links to create easy and great looking call to action buttons, submit buttons, or any other button you can think of!</p>
<p>For even more information about CSS3, visit <a href="http://www.css3.info">www.css3.info</a>.</p>
<p><span class="tutbtn"><a class="tutsource" href="/tutorials/create-an-advanced-css3-menu-version-2/">Version 2 Released</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cameronbaney.com/tutorials/advanced-css3-menu/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>

