Posted by Andy Dingley on 08/22/07 15:48
On 21 Aug, 22:15, "ish...@gmail.com" <ish...@gmail.com> wrote:
> I want to have the same background color
> for the active tab and pages while the inactive pages will be a
> contrasting color. How do I get the tabs to recognize which page is
> active?
Plain and simple CSS. No client-side scripting, no server-side
scripting.
Simple way: put class="current" on the current HTML element(s) and use
simple CSS selectors to change what you need.
Slightly more complex way. The simple way needs the "nav bar" to be
changed for each different "current". That measn you can't embed it
via SSI. There's a CSS fix for that too.
http://groups.google.co.uk/group/alt.html/msg/53a3118c1d34aec8
Navigation:
[Reply to this message]
|