Zend Framework - Navigation View Helper - Active Style Rules
The objective of these rules are to ensure only the active link is highlighted.
The key is the ‘element>element’ selector, which indicates that only a tags which have a parent of li.active will be affected by the rule.
#mainNav a
{
color:#888;
}
#mainNav li.active>a
{
color:#000;
}
#mainNav a:hover
{
color:#444;
}
Print article | This entry was posted by elvis on 11/30/11 at 09:24:00 am . Follow any responses to this post through RSS 2.0. |