Indicating current pages


show more Indicating current pages provides you with in-depth training on Developer. Taught by James Williamson as part of the CSS: Styling Navigation show less
please wait ...

Indicating current pages

It's not uncommon to want a menu to indicate the current page which tells the user which page or section of the site that they're currently viewing. Well, there are a number of techniques that allow us to do this. We're going to focus on the most common, which is to style a class attribute. So working in the same file, we've been working in the horizontal, this time from the 04_07 directory. The first thing I want to do, I'm going to scroll down to the menu, and in the menu I'm going to indicate the current page by using a class.

So in this case, I'm just going to do the homepage, and I'm going to apply a class attribute, and I want to create a class called current. There are a lot of different ways that you can do this. If you're hand-creating a site, you can certainly go in and just on every page go ahead and apply that particular class to the current menu item. You can certainly automate that process. There's lot of blogging software out there that will ap...

Indicating current pages
Video duration: 4m 43s 5h 14m Beginner

Viewers:

Indicating current pages provides you with in-depth training on Developer. Taught by James Williamson as part of the CSS: Styling Navigation

Subjects:
Developer Web
Software:
CSS
Author:
please wait ...