HTML
  Home arrow HTML arrow Page 4 - Layout for a 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

Layout for a Menu for All Browsers
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 3
    2009-05-13

    Table of Contents:
  • Layout for a Menu for All Browsers
  • The Style Attributes
  • Tables for the Drop Down Menus
  • More on 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


    Layout for a Menu for All Browsers - More on the Second Drop Down Menu


    (Page 4 of 4 )

    Let us consider the case where the second menu item (with ‘>’) in the above drop down menu has produced a sub menu, and the second menu item of the resulting sub menu (not shown above) has produced its own sub menu. Under this condition, the set up for fig. 12.1 becomes:


    Fig 12.2

    The content of the first cell of the outer table is as before. The second cell of the outer table has two tables, one nesting within another. Now these two tables have not been drawn to scale. Both of them have the same width. I have shown them the way I have done above for the purpose of illustration.

    Either of the tables has only one column. The table nesting within the other has a border of zero width, so I have represented its borders with dashed lines. This nesting table has two cells. The second cell has the table for the sub menu proper. This sub menu table has four cells; each of these cells has a link (A element).

    The table has a border width of one pixel. The first cell of the nesting table has the space character “ ” so that it will not collapse, and so that its height will be the same as those for the cells of the table it is nesting within.

    The nesting table is given the position property “position:absolute” for the same reason as mentioned above. The value for its display property is initially "none." When you have to see the sub menu (of the nested table), this value is changed to "block." 

    The nested table does not have any position property or display property. It does not have to. Whenever the nesting table is displayed, the nested table is automatically displayed. When you do not want the sub menu, the value of the display property of the nesting table is changed to "none," and the sub menu is removed with the nesting table.

    Let us now talk about the third cell of the one-row outer table. This cell also has two tables. One table nests within the other. The position and display properties of these two tables are correspondingly the same as those for the previous cell. These two tables appear when the mouse pointer goes over the second menu item (Sub link 111 >) of the previous cell.

    When the mouse pointer leaves this cell, the two tables are removed. Also note this: when the mouse pointer points over a cell other than (Sub link 11 >) in the second drop down menu, the two tables in the second cell are removed. You will have the complete code later on.

    There is still more to learn about the outer table of the second drop down menu. Let us rest for now and continue in the next part of the series.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    HTML ARTICLES

    - Hello HTML 5, Goodbye Gears
    - 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







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