
Part 3: Navigation
Unless youre using CMS, Artisteers HTML template has default content and navigation that must edited or replaced. Though the navigation itself is simply an HTML unordered list, there are drop-down sub-menus that include child menus—and that means more nested lists. Ill lay out the navigation structure and show you how to edit each type.
First, heres a typical navigation/menu. Ill show a Home menu item, a drop-down sub-menu, Solutions, and its child menu.
So whats going on here? A lot....
- Set the navigation bar with all of its styles—size, background color and images.
- Set the active, passive, hovered menu item tabs—size, background color, images, borders.
- Set the active, passive, hovered sub-menu and child menu items—size, background color, images, borders.
Okay...it looks dense; we have a parent list, the art-menu, with two nested lists for the sub-menu and the sub-menus child menu, respectively.
Tip:
Just remember the following within the parent list, art-menu:
- A menu item without a drop-down sub-menu is simply a list item of the parent, so close the list item immediately.
- A menu item with a drop-down sub-menu is a nested unordered list contained within the parent list, the art-menu. Close the nested unordered list first, then the parent list item. For example, refer to the following structure:
- A menu item with a drop-down sub-menu and a child menu is a bit trickier, but not really a problem if you follow this rule:
Just as a menu item with a drop-down sub-menu is a nested unordered list contained within the parent list, the art-menu, a child menu is a nested unordered list contained within the list item of the drop-down sub-menu. So, in this case, we will not close the list item of the drop-down sub-menu until after we close the unordered list for the child menu.
Thats a mouthful, so lets look at the structure:
Well now move into the main content, followed by the sidebar, footer, and page footer.