HTML
  Home arrow HTML arrow Page 2 - A Vertical Menu for All Browsers
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

A Vertical Menu for All Browsers
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-06-24

    Table of Contents:
  • A Vertical Menu for All Browsers
  • Layout with Vertical Main Menu
  • Third, Fourth and Fifth Drop Down Menus
  • The Second Drop Down Menu

  • 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


    A Vertical Menu for All Browsers - Layout with Vertical Main Menu


    (Page 2 of 4 )

    The main table of this series, which held the drop down and sub menus, is not used here. Instead, the table for the main menu is given an additional cell to hold the drop down and sub menus. We now call the table for the main menu the main table.

    In the previous case, the main table held the drop down and sub menus; the table for the main menu was different. The main table here has only one row and only two cells. The first cell holds the table with the main menu items. The second cell holds all the drop down and sub menus. The outline diagram for the main table is:

    Table with main menu items

    The rest


    Fig. 17.1


    This table has the value "inline" for its display property. This allows elements on the BODY to appear on its right side, after the second cell. The next diagram shows the main table with an inner table containing the main menu items.



    Fig. 17.2

    Note that all the main menu items now have the ‘>’ character. This is because a drop down menu now appears on the right of its main menu item. So we have a table inside the first cell. Each cell of the inner table has a link. Each of these cells and a link form a main menu item. The next diagram includes the first drop down menu, that is, the drop down menu resulting when the mouse pointer is over the “Main Link 0” item.


    Fig: 17.3

    The first drop down menu is a table. The initial and default value for its display property is "none." When the mouse pointer goes over the “Main Link 0” item, it is changed to "block." All the sub menus work in this way. They are all in the second cell with the value of their display property set to "none." When any are to be seen, their display property is set to "block."

    All the drop down menu tables have the value of absolute in their position property. This property is in their style attribute. None of them has the left and top properties in their style attribute. In this way, they remain at the position, where you put them in the normal flow. Any drop down menu or sub menu that is to be displayed has a z-index value of 10, so that it will appear covering other elements.

    Note: make sure you give the following attribute to the second cell of the main table.

    valign="top"

    If you do not do this, the drop down or sub menus will appear shifted downwards.

    The third, fourth and fifth drop down menus have been configured in the same way as the first. Remember that the sub menu produced from the fifth drop menu has been omitted here, for simplicity. Well, the third, fourth and fifth drop down menu tables are each in a table. This is to enable the top edge of the drop down menu to be at the same level as the top edge of the corresponding main menu item. We look at the details of this in the next section.

    More HTML Articles
    More By Chrysanthus Forcha


     

    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 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek