Our submenus are looking the way that we want them to, but we still need to address their rollover behavior.…So I have the dropdown.htm file open from the 05_04 directory, and the first thing I…wanted to take a look at was the existing style for our rollovers so that we could kind…of see what it is that we will need to overwrite for our submenu.…So I'm looking at the li a:hover selected here on line 68 or so.…So we've got it setting the background of that darker brown color.…We are giving it a height of 2 ems, but we are also adding 0.3 ems padding to the top for the rounded corners.…
We are positioning it with relative positioning so that we can move it up by .3 ems, which is…what the top value there is doing, and then we are applying a border radius of 0.3 ems for the two top corners.…And all those were combining to form that sort of tab look and feel to them, well, that's…great, but for submenus, it's not what we want, number one it's going to cause a submenu's…items to change size when you rollover and which is going to disrupt the entire submenu,…
- 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.