<?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>Blue Lobster Art and Design - Sacramento Web Design and Graphic Design &#187; navigation</title>
	<atom:link href="http://blulob.com/tag/navigation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blulob.com</link>
	<description>Web and graphic design</description>
	<lastBuildDate>Wed, 29 Sep 2010 23:46:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Make a Multi-Level CSS Dropdown Menu in Dreamweaver CS4</title>
		<link>http://blulob.com/2009/05/29/multilevel-css-dropdown-menu-dreamweaver/</link>
		<comments>http://blulob.com/2009/05/29/multilevel-css-dropdown-menu-dreamweaver/#comments</comments>
		<pubDate>Sat, 30 May 2009 06:43:52 +0000</pubDate>
		<dc:creator>Dawn Pedersen</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://bluelobsterart.com/?p=3159</guid>
		<description><![CDATA[Traditionally, multi-level dropdown menu navigation has been done in JavaScript. These kinds of menus can be very confusing to code, and more confusing to go back and edit later. Do it better and more beautifully with CSS and Dreamweaver CS4. For this tutorial, we&#8217;ll be making a horizontal navigation bar for a zoo. It will [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblulob.com%2F2009%2F05%2F29%2Fmultilevel-css-dropdown-menu-dreamweaver%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblulob.com%2F2009%2F05%2F29%2Fmultilevel-css-dropdown-menu-dreamweaver%2F&amp;source=bluelobsterart&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><div id="attachment_3277" class="wp-caption alignleft" style="width: 160px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/mini-150.gif" alt="Menu Preview" title="Menu Preview" width="150" height="150" class="size-full wp-image-3277" /><p class="wp-caption-text">Menu Preview</p></div><img class="alignright size-full wp-image-458" title="Dreamweaver CS4" src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/03/dreamweaver_cs4.gif" alt="Dreamweaver CS4" width="30" height="30" />Traditionally, multi-level dropdown menu navigation has been done in JavaScript. These kinds of menus can be very confusing to code, and more confusing to go back and edit later. Do it better and more beautifully with CSS and Dreamweaver CS4.</p>
<p><span id="more-3159"></span></p>
<p>For this tutorial, we&#8217;ll be making a horizontal navigation bar for a zoo. It will have dropdowns and a couple of items will have flyouts to the right. We&#8217;ll simplify it the navigation by pretending our zoo has only four animals. I guess we can&#8217;t expect too many paid admissions. Luckily, after you&#8217;ve completed this tutorial you should be able to adapt this technique for any site.</p>
<p><a href="http://www.bluelobsterart.com/previews/menu.html">Preview our menu here.</a></p>
<p>&nbsp;</p>
<h4>Step One: Plan Your Nav</h4>
<p><div id="attachment_3163" class="wp-caption alignleft" style="width: 150px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/140px-blue-winged_kookaburra_arp.jpg" alt="Kookaburra" title="Kookaburra" width="140" height="174" class="size-full wp-image-3163" /><p class="wp-caption-text">Kookaburra</p></div>It&#8217;s really important to get organized before you code. The BluLob Zoo needs three first-level navigation items: Home, Visit Us and Animals. Visit Us will need three second-level items: Hours &amp; Pricing, Maps, and Calendar. Animals will have two second level items &#8211; Birds and Beast, and each of these will feature two animals at a third level (<a href="http://en.wikipedia.org/wiki/Kookaburra">Kookaburra</a> and <a href="http://en.wikipedia.org/wiki/Hammerkop">Hammerkop</a> for Birds; <a href="http://en.wikipedia.org/wiki/Wolverine">Wolverine</a> and <a href="http://en.wikipedia.org/wiki/Wombat">Wombat</a> for Beasts). </p>
<p>It will help to create an outline of how we want our navigation organized. This can be done on the computer, but I often find myself sketching things up on Post-It notes or sheets of scratch paper. Here&#8217;s my sketch:</p>
<div id="attachment_3166" class="wp-caption alignnone" style="width: 460px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/sketch.gif" alt="Sketch of Navigation Organization" title="Sketch of Navigation Organization" width="450" height="321" class="size-full wp-image-3166" /><p class="wp-caption-text">Sketch of Navigation Organization</p></div>
<p>An alternate outline would look like this:
<ul>
<li>Home</li>
<li>Visit Us
<ul>
<li>Hours &amp; Pricing</li>
<li>Maps</li>
<li>Calendar</li>
</ul>
</li>
<li>Animals
<ul>
<li>Birds
<ul>
<li>Kookaburra</li>
<li>Hammerkop</li>
</ul>
</li>
<li>Beasts
<ul>
<li>Wolverine</li>
<li>Wombat</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Both of these outlines together will help us visualize how our navigation will be built. Let&#8217;s go!</p>
<p>&nbsp;</p>
<h4>Step Two: Build the HTML</h4>
<p>Our navigation bar has two components: the HTML on the web page, and the CSS styling which will be in an external CSS style sheet that can control every page on our site. We&#8217;ll start with the basic content in HTML without any styling. Take a look at that second outline above. We need to recreate that in Dreamweaver. Remember to save your file frequently!</p>
<ol>
<li>Create a new HTML page in Dreamweaver (File > New). Then select Blank Page and HTML. Choose (none) for the layout, and set XHTML 1.0 Transitional as the Doctype. Click Create.</li>
</ol>
<div id="attachment_3172" class="wp-caption alignnone" style="width: 460px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav01.gif" alt="Create a new HTML page" title="Create a new HTML page" width="450" height="291" class="size-full wp-image-3172" /><p class="wp-caption-text">Create a new HTML page</p></div>
<ol start="2">
<li>Save the file as menu.html (File > Save As). Click on the Design button in the <a href="http://bluelobsterart.com/2009/03/11/the-dreamweaver-cs4-workspace/">Document Toolbar</a>.</li>
</ol>
<div id="attachment_3174" class="wp-caption alignnone" style="width: 373px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav02.gif" alt="Save As and Design button" title="Save As and Design button" width="363" height="233" class="size-full wp-image-3174" /><p class="wp-caption-text">Save As and Design button</p></div>
<ol start="3">
<li>Navigation is really just a type of list, so we&#8217;ll make our menu a list. In the Property Inspector, click on the Unordered List icon. If you cannot see the Property Inspector, go to Window > Properties.</li>
</ol>
<div id="attachment_3178" class="wp-caption alignnone" style="width: 460px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav03.gif" alt="Unordered List icon" title="Unordered List icon" width="450" height="107" class="size-full wp-image-3178" /><p class="wp-caption-text">Unordered List icon</p></div>
<ol start="4">
<li>Type out your first level navigation: <strong>Home</strong>, <strong>Visit Us</strong> and <strong>Animals</strong>. Press Enter (Mac: Return) after each item. Don&#8217;t worry that we appear to be going down rather than across. We will finesse that in the CSS.</li>
</ol>
<div id="attachment_3180" class="wp-caption alignnone" style="width: 205px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav04.gif" alt="First Level Navigation" title="First Level Navigation" width="195" height="157" class="size-full wp-image-3180" /><p class="wp-caption-text">First Level Navigation</p></div>
<ol start="5">
<li>Click with your cursor just after the <em>s</em> in <em>Visit Us</em>. Press Enter/Return and then press Tab. The list should indent and the bullet type should change. This will be for our second-level navigation.</li>
</ol>
<div id="attachment_3182" class="wp-caption alignnone" style="width: 205px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav05.gif" alt="Second-level navigation" title="Second-level navigation" width="195" height="157" class="size-full wp-image-3182" /><p class="wp-caption-text">Second-level navigation</p></div>
<ol start="6">
<li>Type in <strong>Hours &amp; Pricing</strong> and press Enter/Return. Type in <strong>Maps</strong> and press Enter/Return. Type in <strong>Calendar</strong>.</li>
</ol>
<div id="attachment_3184" class="wp-caption alignnone" style="width: 220px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav06.gif" alt="Subnavigation for Visit Us" title="Subnavigation for Visit Us" width="210" height="201" class="size-full wp-image-3184" /><p class="wp-caption-text">Subnavigation for Visit Us</p></div>
<ol start="7">
<li>Click after the empty bullet at the bottom of the list and press Tab. Type in <strong>Birds</strong> and press Enter/Return. Type in <strong>Beasts</strong>.</li>
</ol>
<div id="attachment_3185" class="wp-caption alignnone" style="width: 217px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav07.gif" alt="Subnavigation for Animals" title="Subnavigation for Animals" width="207" height="229" class="size-full wp-image-3185" /><p class="wp-caption-text">Subnavigation for Animals</p></div>
<ol start="8">
<li>Time for our third-level items. Click after the <em>s</em> in <em>Birds</em>. Press Enter/Return and type <strong>Kookaburra</strong>. Press Enter/Return and type <strong>Hammerkop</strong>.</li>
</ol>
<div id="attachment_3188" class="wp-caption alignnone" style="width: 235px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav08.gif" alt="Subnavigation for Birds" title="Subnavigation for Birds" width="225" height="269" class="size-full wp-image-3188" /><p class="wp-caption-text">Subnavigation for Birds</p></div>
<ol start="9">
<li>Repeat for beasts: type in <strong>Wolverine</strong> and <strong>Wombat</strong>.</li>
</ol>
<div id="attachment_3190" class="wp-caption alignnone" style="width: 231px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav09.gif" alt="Subnavigation for Beasts" title="Subnavigation for Beasts" width="221" height="304" class="size-full wp-image-3190" /><p class="wp-caption-text">Subnavigation for Beasts</p></div>
<ol start="10">
<li>Finally, we need to set up each item as a link. We don&#8217;t have pages to actually link to yet, so we&#8217;ll put in a pound sign (#) which is a sort of link placeholder. Select the word <em>Home</em>. In the Property Inspector, type <strong>#</strong> in the Link box and press Tab.</li>
</ol>
<div id="attachment_3193" class="wp-caption alignnone" style="width: 418px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav10.gif" alt="Add a link placeholder" title="Add a link placeholder" width="408" height="297" class="size-full wp-image-3193" /><p class="wp-caption-text">Add a link placeholder</p></div>
<ol start="11">
<li>Do the same for all the other navigational items.</li>
</ol>
<div id="attachment_3195" class="wp-caption alignnone" style="width: 234px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav11.gif" alt="Add link placeholders" title="Add link placeholders" width="224" height="300" class="size-full wp-image-3195" /><p class="wp-caption-text">Add link placeholders</p></div>
<p>All of our basic HTML scripting is done. Now we need to tell Dreamweaver what CSS classes and IDs to use in the HTML. And  we need to set up all of our style rules in an external CSS file.</p>
<p>&nbsp;</p>
<p>Next: Step Three: <a href="http://blulob.com/2009/05/29/multilevel-css-dropdown-menu-dreamweaver/2/">Start Building the CSS</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blulob.com/2009/05/29/multilevel-css-dropdown-menu-dreamweaver/feed/</wfw:commentRss>
		<slash:comments>75</slash:comments>
		</item>
	</channel>
</rss>

