O'Reilly logo

jQuery for Designers : Beginner's Guide - Second Edition by Natalie MacLees

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – creating a horizontal drop-down menu

Let's take a look at how we can use the Superfish plugin to enhance a CSS horizontal drop-down menu:

  1. To get started, we'll create a simple HTML page and the associated folders and files like we created in Chapter 1, Designer, Meet jQuery. To get started, we won't attach the styles.css file to our page. We'll add that in later. The body of our HTML file will contain a heading and a navigation menu that consists of nested unordered lists, as follows:
    <div class="content"> <h1>Butterflies</h1> </div> <ul id="sfNav" class="sf-menu"> <li><a href="#">Papilionidae</a> <ul> <li><a href="#">Common Yellow Swallowtail</a></li> <li><a href="#">Spicebush Swallowtail</a></li> <li><a href="#">Lime Butterfly</a></li> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required