Although our dropdown menu is functioning properly, it is not quite perfect yet.…As we saw in the last exercise, when we roll over the submenu items, our top-level rollovers go away.…We need to create a persistent hover state that's going to keep that rollover active…as we browse through the submenus.…We really don't need to do a lot to accomplish this.…All we have to really do is just update a couple of our existing selectors.…So, this time we are going to be working with the dropdown file again, but this time from the 05_07.…
And we're actually going to be styling up in the top-level menus, so make sure you're…looking up at the horizontal menu styles.…I'm looking for the selector that controls the rollovers for our top-level menu items,…and it would be this little guy right here, so li a:hover.…Now, what's interesting about this one is this is really targeting any link that's being…hovered over, which is also inside of the list item.…And that includes all of our submenus, and that's one of the reasons why we had to create…
- 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 Intermediate
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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.