The subject of this issue's tutorial is a horizontal, two-tier navigation bar, using HTML divs and lists for structure and CSS for styles. This can be used on various sites with just a few CSS rule changes and image swaps, all of which dramatically alter its look but not its actual structure. I'll also show you how to automate the active tab on a web page by way of class and id values, along with a couple of CSS rules (one for the default state and one for the hover state).
展开▼