div.navMenu a:active {
color: #000000;
background-color: #FFCC00;
background: #FFCC00;
}
I currently have created a <div> tag within my jsp page which contains numerous links to Navigate around my site. I have inserted the following style definition in my CSS style sheet to change the color of an anchor within the <div> tag to this color once it has it is clicked. Once it is clicked however the color changes for about a second, and returns back to is original state after the page refreshes. I think this is due to the fact that the anchor no longer is active or has focus so it returns to is original style. Is there a way I can get the color for an anchor to remain the same UNTIL another anchoir within the <div> tag is clicked (it then becomes the one to change color)??
Any help would be greatly apprecited.
-vza
color: #000000;
background-color: #FFCC00;
background: #FFCC00;
}
I currently have created a <div> tag within my jsp page which contains numerous links to Navigate around my site. I have inserted the following style definition in my CSS style sheet to change the color of an anchor within the <div> tag to this color once it has it is clicked. Once it is clicked however the color changes for about a second, and returns back to is original state after the page refreshes. I think this is due to the fact that the anchor no longer is active or has focus so it returns to is original style. Is there a way I can get the color for an anchor to remain the same UNTIL another anchoir within the <div> tag is clicked (it then becomes the one to change color)??
Any help would be greatly apprecited.
-vza