Site Navigation with CSS in Dreamweaver
Illustration by John Hersey

Adding Spry vertical menus


From:

Site Navigation with CSS in Dreamweaver

with Joseph Lowery

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

Video: Adding Spry vertical menus

Spry vertical menus work exactly the same as their horizontal siblings, except they're on their side. So let's take a look at a design where Spry vertical menus fit the bill perfectly, and I'll show you some more styling techniques along the way. First, we'll take a look at the finished product. So here you see my navigation over on the left--I'll move down so you see all five items. And as I roll over each of them, the text changes color, but also the background graphic changes color. This is using a method that involves sprites, which is covered in the "Navigation Techniques" chapter.
Expand all | Collapse all
  1. 2m 20s
    1. Welcome
      1m 2s
    2. Using the exercise files
      1m 18s
  2. 9m 26s
    1. Using icons in navigation
      2m 14s
    2. Understanding 3D nav bars
      2m 25s
    3. Understanding explanatory navigation
      1m 51s
    4. Creating animated navigation
      2m 56s
  3. 1h 14m
    1. Inserting Spry horizontal menus
      7m 4s
    2. Styling Spry menus
      6m 29s
    3. Adding Spry vertical menus
      5m 7s
    4. Styling Spry vertical menus
      10m 53s
    5. Using Spry tabbed navigation
      9m 33s
    6. Styling Spry tabbed menus
      9m 55s
    7. Including Spry accordion panel menus
      5m 32s
    8. Styling Spry accordion menus
      11m 10s
    9. Advanced Spry menu techniques
      8m 32s
  4. 35m 45s
    1. Converting lists to menus
      7m 56s
    2. Working with background images
      5m 47s
    3. Implementing sprites
      5m 53s
    4. Setting up adjustable backgrounds
      9m 4s
    5. Designing accessible navigation
      7m 5s
  5. 30m 34s
    1. Looking at the project
      1m 4s
    2. Building up the basic HTML
      2m 9s
    3. Displaying top-level links horizontally
      8m 12s
    4. Customizing the link states
      4m 29s
    5. Adding drop-down menus (HTML)
      3m 48s
    6. Working with submenus (CSS)
      4m 8s
    7. Achieving interactive submenus
      2m 21s
    8. Marking the current page
      4m 23s
  6. 23m 13s
    1. Looking at the project
      57s
    2. Understanding vertical menus
      2m 15s
    3. Defining width for link elements
      4m 43s
    4. Using background graphics with navigation
      5m 45s
    5. Creating pop-out vertical navigation
      6m 29s
    6. Setting link states
      3m 4s
  7. 10m 13s
    1. Identifying anchor tags
      7m 4s
    2. Identifying external links
      3m 9s
  8. 18m 14s
    1. Creating jQuery animated image menus
      7m 45s
    2. Using the HTML5 nav tag
      3m 24s
    3. Exploring CSS3 enhancements
      7m 5s
  9. 28s
    1. Next steps
      28s

please wait ...
Watch the Online Video Course Site Navigation with CSS in Dreamweaver
3h 24m Intermediate Mar 22, 2011

Viewers: in countries Watching now:

Join Joseph Lowery in Site Navigation with CSS in Dreamweaver as he explores current design trends in site navigation and shows designers and developers how to create robust CSS-based navigation. The course shows how to convert HTML lists to graphical controls that integrate seamlessly with an existing site design, and how to build menus with a wide range of navigation options, all in standards-compliant CSS. Exercise files accompany the course.

Topics include:
  • Using icons
  • Navigating with Spry widgets
  • Styling Spry menus
  • Working with background images
  • Implementing sprites
  • Designing navigation with accessibility in mind
  • Adding drop-down menus
  • Developing graphical navigation with jQuery
  • Creating pop-out vertical navigation
  • Exploring CSS3 and HTML5 enhancements
Subject:
Web
Software:
Dreamweaver
Author:
Joseph Lowery

Adding Spry vertical menus

Spry vertical menus work exactly the same as their horizontal siblings, except they're on their side. So let's take a look at a design where Spry vertical menus fit the bill perfectly, and I'll show you some more styling techniques along the way. First, we'll take a look at the finished product. So here you see my navigation over on the left--I'll move down so you see all five items. And as I roll over each of them, the text changes color, but also the background graphic changes color. This is using a method that involves sprites, which is covered in the "Navigation Techniques" chapter.

Now when I move up to my menu item that has a submenu, as indicated by the ellipsis, you can see the submenu up here is to the right with a different background, no background graphics, and the same orange hover color. Okay. So that's where we're going. Let's get started. I am going to go ahead and close out this menu, and here as our starting point is the mission.htm file, which is located in the under Exercise File/Chapter 2/02_03. Now you can see that I don't have any navigation here over on the left, and if I go into Split View, in fact I have an open nav tag.

Now this is an HTML 5 tag, which is using the new nav tag, and I wanted to do that in order to show you that Spry menus work just as well on HTML5 pages as on previous versions. All right, our cursor is placed just were we want it to be. Let's go over to the Insert panel and in the Spry category, we will select Spry Menu Bar. Dreamweaver asked if we'd like to have either a horizontal or vertical menu. In this case, we want a vertical, so I'll choose that and click OK.

And there is our placeholder menu. Let me open up the Properties Inspector, and you can see, with the Spry Menu Bar tab selected, I have a Custom Property Inspector that shows off all the various items and submenus. So our first task is to go ahead and customize the labels of the various menus and make sure they're working exactly right for us. Now, I can do that right from the Property Inspector. So here is my first item, which I'm going to change from Item 1 to Tours and add that ellipsis.

Now you can go ahead and choose one after another. I'll do the second one this way, Mission, and you can also go ahead and select it, if you're in Design view, right from the screen there, and we'll change Item 3 to Contact, and Item 4 will be Resources. And I'm going to need to add another item, Explores. So in order to do that, the easiest way is to go up and click on the Spry menu bar, select Resources down there, and then click Add menu item, and that will come in as untitled item which I can change right here in the text field. Okay.

Obviously, you would go ahead and set up all your various links here. I'm not going to takes the time to do that, but you can keep the hash marks for testing and later replace those with your actual links. Now, we also have to deal with the submenu items. The first one that I want to work with is the one Contact. Now Spry puts one in the third item by default, and I want to get rid of that. So, I'll select my Spry menu bar, choose Contact, and then I'm just going to choose the last submenu item, and then select Remove menu item.

I choose the last one because I know the way that Dreamweaver works here is that it will move up the list, so I'm go ahead and choose that one. Now watch what happens with item 3.1, which has other subitems. When I click the Remove button, Dreamweaver pops open a dialog and asks, are you sure you want to delete this, because it does have some sub navigation or children? In this case we do, so I click OK, and what that does is it not only removes all of the unordered list items, but it also remove a class that Dreamweaver uses called MenuBarItemSubmenu whenever there is a submenu item, and that's how Dreamweaver knows to display this right triangle that we see here.

So now let's move on to our Tours section, and here you can see it's item 1.1, item 1.2, or item 1.3. Now just to show you that you can still of course work in code, I'm going to go ahead and change these directly in Code view and make this Northern California. Item 2, we'll make Central California, and Item 3, Southern California.

So we have all different regions of California covered. And when I switch back to here and then go into a Live view, I now have all of my correct labels in place for my navigation, both top level and for the sub navigation, but we've got quite a bit of styling to do. Luckily, that can easily be done with Dreamweaver and CSS.

There are currently no FAQs about Site Navigation with CSS in Dreamweaver.

 
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.

Join now Already a member? Log in

* 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 Site Navigation with CSS in 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.