Create Navigation Menus with jQuery and Dreamweaver
Illustration by John Hersey

Nesting unordered lists


From:

Create Navigation Menus with jQuery and Dreamweaver

with Chris Converse

Video: Nesting unordered lists

Now to create our first menu, we need to create a nested unordered list. So let's come in here under Link 1. After the anchor link, but before the ending li, let's hit a Return, let's split that open, let's come inside of here, and we're going to add another unordered list inside of this list item. So let's start with the ul tag, let's end that tag, let's split that open, let's open that up, add another list item tag, end that tag. Let's copy that.

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now
please wait ...
Watch the Online Video Course Create Navigation Menus with jQuery and Dreamweaver
25m 49s Intermediate Aug 09, 2012

Viewers: in countries Watching now:

Find out how to add stylized dropdown menus to your web site using HTML, CSS, and JavaScript. Working in Dreamweaver, author Chris Converse breaks down the menu design process, explaining how to build a menu foundation using unordered lists, establish hierarchy with nested submenus, apply styling using CSS rules, and incorporate dropdown functionality using a jQuery plug-in.

To preview the finished project, visit: http://codifydesign.com/chris/lynda/samples/course-0015

This course was created and produced by Chris Converse. We are honored to host his material in the lynda.com online training library.

Subjects:
Developer Web
Software:
Dreamweaver jQuery
Author:
Chris Converse

Nesting unordered lists

Now to create our first menu, we need to create a nested unordered list. So let's come in here under Link 1. After the anchor link, but before the ending li, let's hit a Return, let's split that open, let's come inside of here, and we're going to add another unordered list inside of this list item. So let's start with the ul tag, let's end that tag, let's split that open, let's open that up, add another list item tag, end that tag. Let's copy that.

Let's paste that two more times, insert another anchor link inside, make that a self link, so we'll link it to a pound sign, and the anchor tag, let's paste that inside of each of other list items. And for the very first one, inside of the link area, we'll type Sub Link space 1-1, let's copy that, and the second one, we'll call that Link 1-2, and then 1-3.

One of the thing we're going to do inside of here, let's add a class to the middle one, and we're going to set this class equal to selected. Let me come over here and open my split a little bit more. So this selected class here is going to allow our users to see what section of the site they are already in, and you can add a selected class to anyone of the anchor tags to give indications on where somebody is inside the navigation. So now with our first submenu in place, let's come up here, and let's select that entire nested unordered list, let's copy that to the clipboard, let's come down to item number three, lets split that list item open, let's paste in that submenu, let's come in here and call this Sub Link 3, let's take off this selected class on the second one, and we'll call the Sub Link 3-2, and 3-3.

Now that we have two nested unordered lists in place, one under Link 1, and one under Link 3, in the next movie, we're going to add a nested list to Link 4, and then we're going to put a nested list inside of that nested list, that's going to give us that third level menu that we saw in the Introduction video.

Find answers to the most frequently asked questions about Create Navigation Menus with jQuery and Dreamweaver .


Expand all | Collapse all
please wait ...
Q: Where can I find more menu information and plug-ins from menu systems?
A: There is a great article from 1stwebdesigner, "38 jQuery And CSS Drop Down Multi Level Menu Solutions", where they list and explain thirty-eight different plug-ins and techniques.
 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

* Estimated file size

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Create Navigation Menus with jQuery and Dreamweaver.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.