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.
Table Attributes for a Menu for all Browsers (Page 1 of 4 )
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:
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: