<?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>Kyle Schaeffer - Interactive Media Design &#187; Navigation</title>
	<atom:link href="http://kyleschaeffer.com/tag/navigation/feed/" rel="self" type="application/rss+xml" />
	<link>http://kyleschaeffer.com</link>
	<description>Veteran web designer Kyle Schaeffer brings you tips, tricks, and best practices in interactive media design.</description>
	<lastBuildDate>Thu, 15 Jul 2010 21:26:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Navigation Using Unordered Lists</title>
		<link>http://kyleschaeffer.com/tutorials/navigation-using-unordered-lists/</link>
		<comments>http://kyleschaeffer.com/tutorials/navigation-using-unordered-lists/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 21:21:07 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.kyleschaeffer.com/?p=74</guid>
		<description><![CDATA[An unordered list (the &#60;ul/&#62; tag in HTML) is a great way to easily organize your site navigation with a minimal use of HTML, but how is it done? This is a simple tutorial showing you exactly how to create a simple list-based navigation menu in your site. Vertical Menus Vertical menus are the easiest [...]]]></description>
			<content:encoded><![CDATA[<p>An unordered list (the <code>&lt;ul/&gt;</code> tag in HTML) is a great way to easily organize your site navigation with a minimal use of HTML, but how is it done?  This is a simple tutorial showing you exactly how to create a simple list-based navigation menu in your site.<span id="more-74"></span></p>
<h3>Vertical Menus</h3>
<p>Vertical menus are the easiest list-based menus to create; basically all you have to do is hide the bullets and padding for your list using CSS.  In the example below, we have a very simple two-level vertical navigation menu.</p>
<h4>The HTML:</h4>
<pre>&lt;ul class=&quot;navigation&quot;&gt;
    &lt;li&gt;&lt;a href=&quot;http://www.google.com&quot;&gt;Google&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;http://www.yahoo.com&quot;&gt;Yahoo!&lt;/a&gt;
        &lt;ul&gt;
            &lt;li&gt;&lt;a href=&quot;http://www.yahoo.com/shopping&quot;&gt;Yahoo! Shopping&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;http://www.yahoo.com/sports&quot;&gt;Yahoo! Sports&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;http://www.yahoo.com/weather&quot;&gt;Yahoo! Weather&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;http://www.amazon.com&quot;&gt;Amazon&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;http://www.ebay.com&quot;&gt;eBay&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>
<h4>The CSS:</h4>
<pre>ul.navigation,
ul.navigation ul {
	margin: 0;
}
ul.navigation li {
	list-style-type: none;
	padding: 0 0 0 20px;
}</pre>
<h4>The Result:</h4>
<p><img class="alignnone size-full wp-image-76" title="Vertical Navigation" src="http://kyleschaeffer.com/wordpress/wp-content/uploads/2008/10/navigation1.gif" alt="" width="151" height="130" /></p>
<h3>Horizontal Menus</h3>
<p>Horizontal menus are slightly more complex than the vertical variety, but they aren&#8217;t so far removed.  As you can see in the example below, the HTML remains largely the same; we&#8217;ll modify the CSS to allow the navigation list items to appear in left-to-right orientation.</p>
<h4>The HTML:</h4>
<pre>&lt;ul class=&quot;navigation&quot;&gt;
    &lt;li&gt;&lt;a href=&quot;http://www.google.com&quot;&gt;Google&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;http://www.yahoo.com&quot;&gt;Yahoo!&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;http://www.amazon.com&quot;&gt;Amazon&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;http://www.ebay.com&quot;&gt;eBay&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>
<h4>The CSS:</h4>
<pre>ul.navigation,
ul.navigation ul {
	margin: 0;
}
ul.navigation li {
	list-style-type: none;
	<strong>float: left;</strong>
}</pre>
<h4>The Result:</h4>
<p><img class="alignnone size-full wp-image-77" title="Horizontal Navigation" src="http://kyleschaeffer.com/wordpress/wp-content/uploads/2008/10/navigation2.gif" alt="" width="232" height="18" /></p>
<p>The basic structure (as shown in the examples above) can be used for your site menus, but you&#8217;ll undoubtedly want to add some style and color to match the design of your site.  Here are a few examples to get you started and to perhaps give you some ideas of your own.</p>
<h3>Vertical Navigation</h3>
<p>Click on the image below to see the demo.  On the demo page, right-click and view source to see the code.</p>
<p><a href="http://kyleschaeffer.com/wordpress/wp-content/uploads/2008/10/verticalmenu.htm" target="_blank"><img class="alignnone size-full wp-image-78" style="border: 0pt none;" title="Vertical Navigation Styled" src="http://kyleschaeffer.com/wordpress/wp-content/uploads/2008/10/navigation3.gif" alt="" width="171" height="179" /></a></p>
<h3>Horizontal Navigation</h3>
<p>Click on the image below to see the demo.  On the demo page, right-click and view source to see the code.</p>
<p><a href="http://kyleschaeffer.com/wordpress/wp-content/uploads/2008/10/horizontalmenu.htm" target="_blank"><img class="alignnone size-full wp-image-79" style="border: 0pt none;" title="Horizontal Navigation Styled" src="http://kyleschaeffer.com/wordpress/wp-content/uploads/2008/10/navigation4.gif" alt="" width="333" height="65" /></a></p>
<p>As you can see, we&#8217;re using CSS to add rollover effects and sub-menu background colors.  You can add images and other navigation elements to take your design even further.</p>
]]></content:encoded>
			<wfw:commentRss>http://kyleschaeffer.com/tutorials/navigation-using-unordered-lists/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
