--- On Tue, 8/3/10, Duncan Hill <dun...@gmail.com> wrote: > to add a little to MB's method, and maybe confound the SSI > doubters a > little bit. > The 'active' page can easily have its link disabled with no > more than CSS > by changing the cursor to a standard arrow so that the user > does not > expect any action, and the addition of the 'pointer-events' > property set > to none. > An entire item on the menu can be just as easily hidden by > using display: > none;
Of course, that method doesn't help if you don't have CSS enabled or if, for example, you're using a screen reader. You could also use javascript to remove the 'href' attribute, but that suffers from the same sort of problem. Ideally, you'd remove the href element server-side so the *content* is accurate. There shouldn't be any case where this is difficult. Yes, if you're just including a single static chunk of HTML for your menu, this isn't possible, so it's better to either dynamically generate the menu, or have a separate static 'chunk' for each different state. If your menu has more than one level of navigation, you'll need to do this anyway. - Bobby ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/