By ilovekr on
Hi,
I am wondering how I can keep a link color current such as when i click a menu link it keeps the active color until another link is clicked.
Thanks!
Hi,
I am wondering how I can keep a link color current such as when i click a menu link it keeps the active color until another link is clicked.
Thanks!
Comments
You want to implement the
You want to implement the pseudo class :active in your CSS.
And make sure it comes in the following order in your CSS
:link (normal - you usually don't need to implement this)
:visited
:hover
:active
If you do it in a different order, you may end up with some strange hard-to-debug behavior.
Contact me to contract me for D7 -> D10/11 migrations.
Hi, Do you mean something
Hi,
Do you mean something like this #main-menu .menu-218:active {color: blue;}
I want the link to stay a certain color when it is in the current/active state. Is there a simple way to do this?
Thanks.