Join James Williamson for an in-depth discussion in this video Solution: Creating horizontal menus, part of CSS: Styling Navigation.
- View Offline
- Exercise Files
- Code Practice
Welcome back. I hope you had fun experimenting with our main site navigation, and I'm hoping…most of you played around with creating your own version of the menu bar.…Let's take a look at the finished files and go over how I styled the menu based on the…parameters that I gave you in the lab.…Now, in this case, I really don't expect your code to match mine.…Just examine the reasons why I style the menu the way that I did and compare it with your own reasoning.…Again, I have the main.css file open and the index.htm file open.…
Now these are coming from the 04_09 > finished_files folder, and remember the CSS is actually inside the _css folder.…I also have campus_portal open just to kind of show you how I am applying that class.…You certainly don't need to have that open.…I just have it open so I can point out the class application for the indication of the current page.…The first thing that I had to tackle was making the menu appear just to the right of the RA…logo and stretch for the remainder of the layout, just as you're seeing right here.…
- 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.