Easy question :-) ... How do you have the active link a different color?
sugarfree - November 23, 2007 - 04:45
Hi All, new to drupal.
I have a very simple menu/navigation structure:
Item 1
Item 2
Sub Item 1
Sub Item 2
Item 3
I'm using the burnt theme (so text menu items are orange).
All i want to do is once a user clicks say Item 3, and node x for Item 3 is loaded (i.e active), that the Item 3 link is a different color (e.g green :-), and even better, Item 3 is no longer a link.
Any suggestions welcomed
_C

=-=
you do this by adding the necessary css to the style.css file
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Have tried many variations
Have tried many variations in styles.css but alas no dice :-(
What should i add/change to:
#sidebar-left a:link {
color:#00ff00;
text-decoration: none;
}
-Cheers
============
Bit rusty when it comes to css :-)
#sidebar-left .active,
#sidebar-left .active, a.active {
color:yourcolor;
text-decoration: none;
}
........I guess your not a developer
the solution is quite simple...... LOVE HATE
a:link { // a link in "up" stagecolor: #779D03;
text-decoration: none;
}
a:visited { // a link that has been visited
text-decoration: none;
color: #779D03;
}
a:hover { // a link that is being hovered over
text-decoration: underline;
color: #779D03;
}
a:active { // a link when its "linked to" page is currently being viewed <--- THIS IS THE ONE U WANT
text-decoration: none;
color: #779D03;
}
If you have any other questions just throw them out there.
-Joomla's gay
Thankyou. All good
Cheers to VeryMisunderstood, Yur, pegleglax.
Your comments helped me fix my problem
-Craig
"Sometimes, you can't see the forest for the trees"