Kyanite
Kyanite

Reputation: 746

Hyperlink colour changes when click is held

I have some hyperlinked text. However, if I click it (but don't let go of the mouse or pull the mouse away) it disappears. Almost as if there is something other than a:link & a:visited that needs to be styled and the text is turning white (I have a white background).

Does anybody know which tag I need to style to change the colour of the state of the class when the mouse is held on the link? I've tried every <a> tag I can find and nothing is preventing the change of colour. I'm baffled as I've never come across this before.

Thanks in advance.

Upvotes: 0

Views: 41

Answers (2)

Anshul Lonkar
Anshul Lonkar

Reputation: 83

You can try this hope this will help you.

.a:hover,.a:active {
color:black;
}

Upvotes: 0

Youness
Youness

Reputation: 1495

hope it helps

a:active{
    color:#000000 !important;   /*or set the color of your choice*/
}

Upvotes: 1

Related Questions