Join James Williamson for an in-depth discussion in this video Solution: Dropdown menus, part of CSS: Styling Navigation.
Welcome back. I hope you got your dropdown menus functioning exactly the way that you wanted to.…We are going to compare your finished code with mine, and I'll talk a little bit about…how I styled the finished menus.…And I know it seems like you had a lot to do here, but you probably only needed to write…three or four selectors based on how you chose to do this.…So as we go through this solution, be sure to compare your code with mine and kind of…see which code you think might be more efficient. And trust me, it is not always going to be mine.…Let's go through the lab steps again.…
So the first thing that I asked you to do is find the dropdown menu styles and write…a selector that's going to target the submenus.…We wanted to turn floating off, set the background to that semitransparent white, determine how…wide the submenu is going to be, and assign that value, set the height to auto, and then…using positioning, start it at -9000 pixels off the page and 45 pixels from the top of…the parent nav element.…
- 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.