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


    (Page 1 of 4 )

    In previous parts of this series, we discussed the style and ID attributes of the menu's tables. As I said, a lot of the design in this series lies in the configuration of the tables. In this part of the series, we have to talk about the other attributes. This is the last part where we shall talk about table configuration. Attributes affect the characteristics (nature) of a table.

    The Main Menu Attributes

    The main menu is the horizontal bar. The cellpadding of this table is zero. The cellspacing is zero. The border width for the table cells is 1px. So, apart from the border size, all that you see on the table is the content of the cells. 

    Cellpadding and cellspacing values are browser dependent. Keeping these values at zero gives consistency between browsers.

    The width of the table is 900px. In this series, do not forget to give table widths and cell widths. The start tag of this table is as follows:

    <table cellpadding="0" cellspacing="0" border="1" width="900">

    Attributes for the Main Table for Sub Menus

    The cell spacing and the cell padding for this table are each zero for the same reasons given above. The border width for the tables for the drop down menu will be 1px. If we give this main table (the cells) a border width, then the border widths of the drop down menus will be thicker than the border widths of the cells of the main menu (above it). This would lead to misalignment between the cell widths of the main menu and the widths of the drop down menus.

    Remember that the widths of the drop down menus have to be the same as the widths of the corresponding cells of the main menu. Do not confuse the main menu of the horizontal bar with the main table holding the sub menus (including the drop down menus). The start tag of this table is:

    <table id="MT"cellpadding="0" cellspacing="0" border="0" width="900" style="position:absolute; z-index:10; display:none">

    The only attribute in the cells of this table is that of the width. They are as follows:

    <table>

    <tbody>

    <tr><td width="125"></td><td width="200"></td><td width="250"></td><td width="200"></td><td width="125"></td></tr>

    </tbody>

    </table>

    If you add all these numbers you will have 900, equal to the width of the main menu table. Note that the drop down menus are the contents of the above cells.

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