Previous Message
Next Message

Keeping a "current state" on navigation.

Sent by Brian Tully on 29 July 2004 17:05


You're welcome to borrow the code I came up with which uses PHP and CSS and
resembles the approach presented on ALA.

http://www.tullyvision.com/blog/archives/2004/07/current_state_o_1.php

Regards,
Brian


on 7/29/04 8:59 AM, matt mikulla at [EMAIL-REMOVED] wrote:

> Hello. I'm learning css and I wanted to know how you folks handle creating a
> current "state" of a button/link in a navigational system. I've seen it done
> this way:
> 
>  <div id="navcontainer">
>  <ul id="navlist">
>  <li id="active"><a href="#" id="current">Item one</a></li>
>  <li><a href="#">Item two</a></li>
>  <li><a href="#">Item three</a></li>
>  <li><a href="#">Item four</a></li>
>  <li><a href="#">Item five</a></li>
>  </ul>
>  </div> 
> 
> However, what If I want to use server side includes to make my navigation
> cosistent throughout the site? Would I have to serve a different navigation
> file for all pages that use item one, item two, or item three.
> 
> Or is there a clever way Css can handle it. My site will have at least 30
> pages and I was hoping I could handle this with one css file.
> 
> ______________________________________________________________________
> css-discuss [EMAIL-REMOVED]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
> 


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: