Join James Williamson for an in-depth discussion in this video Styling submenus, part of CSS: Styling Navigation.
We're now ready to start styling our submenus, but as you can see they don't exactly look…the way that we want them to, right out of the box.…The reason for that is that they are taking on the styling that's actually meant for our…top level menus, it's just inheriting down.…So not only do we have to create new stills for our submenus, we also have to make sure…that they overwrite our previous menu styles as well.…It's really kind of hard to tell what's going on by looking at all of these drop down menus…because they are all sort of colliding over each other and dropping down.…So I always find it easier to style one just as a sample and then apply it to everybody.…
So I have opened up the dropdown.htm from the 05_03 directory, I'm just going to scroll…down in my code until I find my submenus, and I am going to take the bottom two submenus,…and I'm going to apply an HTML comment to those.…HTML comment is just <!--, and then you follow that with a dash-dash, and then another right angle.…All right, so I am going to do that for the bottom submenu which is in contact, and then…
- Organizing menus with lists
- Creating block-level links
- Styling links, link states, and image links
- Defining link dimensions
- Controlling link spacing in a menu
- Creating rollovers
- Clearing floats
- Indicating current pages
- Controlling cursor states
- Building dropdown menus
- Creating CSS-only buttons
Skill Level Beginner
1. Structuring Navigation
2. Link Styling Basics
3. Creating a Vertical Menu
4. Creating Horizontal Menus
5. Dropdown Menus
6. Enhancing Navigation with CSS
Additional resources6m 29s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.