Forum Moderators: not2easy
Currently I've got this:
<li id="active"><a href="#" id="current">Item one</a></li>
For the active/sticky menu item but doing it this way would mean having different code across all pages. Usually I'd quite happily do this but I'm actually using Wordpress to create the site so I'd like to include this code in the same header file throughout the site.
I'm doubting if there's any way to set this up using CSS alone but if anyone can guide me a little bit then that'd be very much appreciated.
so assume you have five sections: "one" "two" "three" "four" "five"
and you use html like:
...
<body class="one">
...
<li id="one">...
<li id="two">...
<li id="three">...
<li id="four">...
<li id="five">...
...
.one #one, .two #two, .three #three, .four #four, .five #five {
...; /* active style goes here */
}