HTML
  Home arrow HTML arrow Building a Drop-Down Menu with Nested HTML...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Building a Drop-Down Menu with Nested HTML Lists
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2009-05-29

    Table of Contents:
  • Building a Drop-Down Menu with Nested HTML Lists
  • Start building a drop-down menu: the structural markup
  • Using CSS styles to turn the menu into a functional user interface
  • Making the menu compatible with Internet Explorer 6 and below

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building a Drop-Down Menu with Nested HTML Lists


    (Page 1 of 4 )

    Welcome to the third part of a three-part series that shows you how to design with nested HTML lists. Today we'll take what we've learned in the previous two parts to a logical conclusion: building a full-fledged drop-down menu. We will even make sure that this menu is compatible with older browsers, such as Internet Explorer 6.

    Introduction

    Undoubtedly, HTML lists are an important piece within the structure of many web sites. They allow you to display bulleted information in an elegant, well-categorized manner. However, the traditional usage of lists can be extended by nesting their elements as many times as needed, in this way making it possible to build useful web page elements, such as hierarchical navigation menus, to cite an illustrative example.

    If you're interested in learning how to use nested HTML lists for building different kinds of hierarchical web-based user interfaces, then you should take a close look at this series of articles, since it'll teach you the key concepts that surround the creation of nested lists, and also show you how to employ them in production environments.

    Naturally, if you've already read all of the previous articles of this series, then you're probably familiar with nesting HTML lists and using them to create well-structured sets of bulleted items. Speaking more specifically, in the preceding tutorial I explained how to utilize a basic nested list for building a hierarchical links bar, commonly seen nowadays on many web sites.

    Since it's relatively easy to develop a navigation mechanism like the one mentioned above, in this final installment of the series, I'm going to discuss how to use nested lists for constructing a standard drop-down menu. Hopefully, this process will be pretty straightforward for you; it'll only require a basic background in CSS and JavaScript, since a bit of client-side scripting will be used for addressing some specific incompatibilities inherent to Internet Explorer 6 and below.

    Having outlined the topic that will be treated in this last part of the series, it's time to leave all the preliminaries behind and start learning how to use nested HTML lists to develop a neat drop-down menu. Let's begin now!

    More HTML Articles
    More By Alejandro Gervasio


       · This final part of the series shows how to use nested HTML lists specifically for...
     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek