Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Including Spry accordion panel menus

From: Site Navigation with CSS in Dreamweaver

Video: Including Spry accordion panel menus

Spry accordion panels are a cool way to hide and reveal content on demand, complete with built-in animation. In this video, I'll be begin to show you how to extend the coolness of accordion panels to your site-wide navigation. Before we start, let's take a look at the final product. Here I have index.html open from the final folder, and you can see my navigation elements over here on the left in the vertical navigation. If I go over and roll over any of them, I get a little hover color action, and when I click on any of the ones that have subnavigation, the accordion panel expands, and I see my various elements in there.

Including Spry accordion panel menus

Spry accordion panels are a cool way to hide and reveal content on demand, complete with built-in animation. In this video, I'll be begin to show you how to extend the coolness of accordion panels to your site-wide navigation. Before we start, let's take a look at the final product. Here I have index.html open from the final folder, and you can see my navigation elements over here on the left in the vertical navigation. If I go over and roll over any of them, I get a little hover color action, and when I click on any of the ones that have subnavigation, the accordion panel expands, and I see my various elements in there.

If I click on another one, it works as it normally does with accordion panels, where one panel closes and another one opens. And again, I have my subnavigation available to me. Clicking on the final one, we'll close them all and take me to whatever page is linked to it. Okay, so let's get started. And now I have index.html opened from my Chapter 2 exercise files. We're going to make this a vertical navigation, so it's going in the side here. I'll go to Split view, and we're looking for div id = "sideWrapper", line 93, and put your cursor in between the opening and closing div, and then head on over to the Insert panel, choose the Spry category if you haven't already, and go down towards the bottom, and you'll find Spry Accordion.

Click that once to insert it, and you'll see that Dreamweaver has put in two accordion panels. Since we are in Live view, we can go ahead and examine how they work, so I'll roll over them and you'll see that slight roll-over color change, and I click on the second one and it rolls up. Click on the first one and the second one rolls down, just as you would expect. So let's drop out of Live view and I'll open up the Properties Inspector and click on the Spry accordion panel here. And the first thing we need to do is add a couple of additional panels so that we can take care of our additional menu items.

So in the Accordion Property Inspector I'll go down and select Label 2 and then click Add Panel twice, and now we're ready to change our labels. I'm just going to go up in Design view and select Label 1, and we'll make this Home. Label 2 I'm going to turn into About with an ellipsis because this has some subnavigation. So dot, dot, dot there. Label 3 is Process--again, with some subnavigation.

And finally, Label 4 is Contact Us. Now all of these need to be turned into links, so I can just go up and double-click on Home and then in the Property Inspector, type in index.html, and press Tab to lock that in. Now on About, I'll go ahead and select it, and then in the Link field, we're not actually going to a separate About page. This is just being used to open up the subnavigation, so I'll just put in a hash mark here.

Same deal with the Process, where I'll select that and put in a hash mark. Contact Us on the other hand, will be going to its own page, so we'll type in 'contact.html'. Now we're ready to go ahead and put in the subnavigation, so we'll take advantage of Dreamweaver's ability to show different Spry content by choosing the eye icon here. So now we have Content 2. I'm going to select that. We're actually going to use Bulleted List inside of this as the starting point for our navigation. So I'll change this to Unordered List, and Content 2, I'll change it to Our Oil.

The second entry is the Land, and the final entry is Company. Again, we want these all to be links, so I'm going to go ahead and select Our Oil there, and then in the Property inspector put in oil.html. We'll select the Land and enter land.html, and then Company, the quick double-click to select, enter company.html. Now we're ready to go on to the next one, which is Process. And instead of going through that process again--no real pun intended there, but it just happens sometimes-- I'll select the content and get rid of it.

Let's go into Split view here. You can see that I'm in the "accordionpanelContent">

under the Process, so I do have a code snippet available for us. If we go to the Files panel and open up the 02_07 folder, and the Code folder underneath it, you'll see a file called process.txt. Double-click on that, and you can open it up right in Dreamweaver, and we'll select all of the code there, do a quick copy with Command+C, Ctrl+C on the PC of course, and then make sure we're in Code view and paste it in.

So now if I go to Design view, I'll see that put in there as an unordered list. Working with the HTML in Spry accordion panels for navigation is definitely different from a pure unordered list approach, but it really does give you a variety of different options to choose from when it comes to site navigation, and now we're ready to begin the styling process.

Show transcript

This video is part of

Image for Site Navigation with CSS in Dreamweaver
Site Navigation with CSS in Dreamweaver

40 video lessons · 18349 viewers

Joseph Lowery
Author

 
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

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
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

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 ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

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.

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.