HTML
  Home arrow HTML arrow Page 3 - Table Attributes for a Menu for all Browse...
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

Table Attributes for a Menu for all Browsers
By: Chrysanthus Forcha
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-05-27

    Table of Contents:
  • Table Attributes for a Menu for all Browsers
  • Attributes of the Drop Down Menu Tables
  • Attributes of the Second Drop Down Menu
  • Nesting Table Cell Attributes

  • 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


    Table Attributes for a Menu for all Browsers - Attributes of the Second Drop Down Menu


    (Page 3 of 4 )

    There is an outer table here with one row of three cells. When the mouse pointer goes over the second menu item on the main menu, this table is displayed. The cell spacing and the cell padding for this table are each zero for the same reasons given earlier.

    The table border (cell) width is 0px. Recall that the tables that you see in this case are inside this table. The tables that you see have borders (cell borders). So if you give this table cell borders, the resulting border for a table displayed will be thicker than the corresponding borders of the cell in the main menu. This would lead to poor alignment. The width of this table is 525px.

    The first cell of this table has a width of 200px, the second has a width of 175px and the third has a width of 150px. If you add these values, you will have 525px. Each of these cells would have a table whose width is equal to the width of its containing cell.

    The attributes of the table in the first cell have the same meanings as the attributes of the ordinary drop down menu tables. However, remember that the value of the display property is always "block." So, whenever the outer table is displayed, this table is also displayed; whenever the outer table is removed, this table is also removed. This is the start tag of the table:

    <table cellpadding="0" cellspacing="0" border="1" rules="rows" width="200" style="position:absolute; display:block">

    As explained in the previous part, there are two tables in the center cell of the outer table. The value of their display property is initially "none." When you want to see any tables, you change this value to "block."

    The cellpadding and cellspacing of either nesting table is zero, for the same reasons as mentioned earlier. The table border (cells) of either nesting table is 0px thick (see reasons below). There is no rules attribute here (see reasons below). So, the borders of the cells are not to be displayed.

    There is a width property. The width value is equal to that of its containing cell of the outer table. These are the start tags of these two nesting tables for the center cell:

    <table cellpadding="0" cellspacing="0" border="0" width="175" id="ST11" style="position:absolute; display:none">


    <table cellpadding="0" cellspacing="0" border="0" width="175" id="ST21" style="position:absolute; display:none">

    Each of these tables has a nested table, which is actually the sub menu. The cellpadding and cellspacing of either nested table is zero, for the same reasons as mentioned earlier. The table's (cells) border width is 1px. These are the sub menus proper, so the borders of the menu items should be seen. If the nesting table has table (cells) borders, then there will be alignment problems as I explained earlier.

    Note that we have quite a good number of tables without borders; this is to prevent alignment problems. Since they are the menus proper, these nested tables have the rules property with the value "rows." The width of a table is equal to the width of the nesting table, which is equal to the width of the containing cell. These are the start tags for the two corresponding nested tables:

    <table cellpadding="0" cellspacing="0" border="1" rules="rows" width="175">


    <table cellpadding="0" cellspacing="0" border="1" rules="rows" width="175">

    They are the same. Neither of them has the position and display property. This is because each of them is a nested table, glued to the nesting table; each of them would appear when the nested table appears. For this reason, neither of the tables has an ID and does not need to be addressed by the JavaScript.

    In the fourth cell of the main table, there are two tables. One is a drop down menu table. The other is the sub menu table produced by the fifth drop down menu. These are the start tags of the drop down and sub menu tables:

    <table cellpadding="0" cellspacing="0" border="1" rules="rows" id="DDT4" width="125" style="position:absolute; display:none">


    <table cellpadding="0" cellspacing="0" border="0" width="200" id="ST34" style="position:absolute; display:none">

    With everything I have explained, you should be able to explain the meaning of the attributes. I will give you the complete code later on.

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