Join James Williamson for an in-depth discussion in this video Positioning submenus, part of CSS: Styling Navigation.
Now that we've gotten the styling of our submenus taking care of, we can turn our focus to positioning…the submenus exactly where we want them.…There are multiple approaches that you can take when you're deciding how you want to…position submenus relative to the top menu and many of them depend on really kind of…how you plan on controlling the display of the submenus.…The approach that I'm going to show is based on using absolute positioning for the submenus.…The reason that I favor this technique is that it keeps the submenu text accessible…to screen readers, which to me is a big deal.…
Now we are going to discuss that aspect in a little bit more detail later on in the next…exercise, but for right now I want to focus on setting the initial position of our menu,…and the reason that I have it previewing here in the browser right now is I wanted to show…you what the default position of the submenu is.…So if you just leave it alone and don't position it at all, this is where it shows up, and…that's actually not bad. That's precisely more or less where we want it.…
- 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?
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.