HTML
  Home arrow HTML arrow 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


    (Page 1 of 4 )

    This is the eighth part of a nine-part series that shows you how to build a menu that will work in all browsers. Let us quickly look at the design of a vertical main menu in this part.

    Vertical Main Menu

    In this section I show you how you can write code for a vertical menu. All along we have seen a horizontal main menu. It is not easy to use the technology of the previous series to come up with a vertical main menu. It is easy, however, to use the technology of this series to come up with a vertical main menu.

    The Example

    The difference between the example here and the example we have been using, is that the main menu is vertical. In fact we shall use the same menu items we used previously in this series. This is the second example of this series. The two are very similar.

    The main menu items will now be in a vertical rather than a horizontal bar. These are the same items we had in the previous example. The main menu is now a short vertical bar around the left-top corner of the web page.

    We cannot really talk about drop down menus here, since a drop down menu drops down from a menu item in a horizontal bar. The same drop down menus are still there, but this time they appear on the right side of the vertical main menu, just next to it. However, let us still call these particular sub menus "drop down  menus," since they are the menus that appear immediately from the main vertical menu.

    The second drop down menu here can produce the same sub menus that it produced when we were dealing with the horizontal main menu; and some of the sub menu items will produce the same sub menus they produced before. With the horizontal main menu (and with the exception of the last drop down menu), the sub menus were produced to the right of the drop down menu. Here, all sub menus are produced to the right of the drop down menus. The code for producing sub menus will not change.

    For simplicity, the last drop down menu will not produce any sub menu, as it did in the previous case, where it produced a sub menu to its left. So we shall not have to worry about writing code for this. Even if it had to produce a sub menu, in the present circumstance, it would produce it on the right, since there is space on the right.

    When a sub menu is produced, its top edge is at the same level as the top edge of the main menu item.

    More HTML Articles
    More By Chrysanthus Forcha


     

    HTML ARTICLES

    - Google Font API: Requesting a Bold Font Styl...
    - Google Font API: Using the Bi Shorthand
    - Working with the Google Font API`s bolditali...
    - Displaying Bold Text with the Google Font AP...
    - Using the Google Font API`s Bold Argument
    - The Google Font API`s i Shorthand
    - Using the Google Font API`s Italic Option wi...
    - Using the Google Font API`s Italic Option
    - The Google Font API: an Introduction
    - Using HTML 5`s Mark, Summary and Details Ele...
    - Embedding External Content with HTML 5`s Art...
    - Building Sidebars with HTML 5`s Aside Element
    - Working with HTML 5`s Footer Element
    - Using the HTML 5 Section Element
    - An Introduction to HTML 5: Doctype, Header a...







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