Previous Message
Next Message

Keeping a "current state" on navigation.

Sent by matt mikulla on 29 July 2004 13:01


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/
Previous Message
Next Message

Message thread:

Possibly related: