I have read how to format the body tag and the links in a css nav menu so
that the current page button is highlighted as you travel throughout a site.
Example:
*body tag:*
<body id="home">
*menu:*
<ul id="topNav">
<li><a href="/index.html" id="homelink">Home</a></li>
<li><a href="/features/" id="featureslink">Features</a></li>
<li><a href="/experts/" id="expertslink">Experts</a></li>
<li><a href="/quiz/" id="quizlink">Quiz</a></li>
<li><a href="/projects/" id="projectslink">Projects</a></li>
<li><a href="/horoscopes/" id="horoscopeslink">Horoscopes</a></li>
</ul>
*css formatting:*
#home #homelink {
background-color: #ffffff;
*result:*
Home button would be highlighted white
Can this be further extended to also control when submenus appear &
disappear automatically without using any scripts?
I am wanting to create a navigation menu that will have submenus
appearing automatically depending on the page you are viewing while any
other submenus not related to a given page remain invisible.
Didn't know if this could be done strictly using CSS only.
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/