Using css "active tab" technique on single page

Posted by flash on Stack Overflow See other posts from Stack Overflow or by flash
Published on 2010-03-31T16:45:35Z Indexed on 2010/03/31 17:33 UTC
Read the original article Hit count: 209

Filed under:
|
|

I'm building a navigation system using jquery scrollto. I have my navigation menu in a separate file (( navigation.php )). It is included in 5 locations on the first page (( 5 different sections w/ text following each )). I'm trying to figure out a way to have the current "tab" highlight'd. I could hard code the navigation in each location to ensure it shows up the correct way, but I'd rather use the phpinclude() method. The other issue is that each "tab" has it's own unique color (( cmykd )). Here is the alpha version of what I'm doing (( when you click && the page slides, the "active tab" still stays grey -- I'd like it to be the corresponding color )).

Hope this all makes sense && thanks in advance !!

© Stack Overflow or respective owner

Related posts about html

Related posts about css