+ 3
[Solved on my own! ] Q. Is it possible to disable the blue highlight of an anchor tag in html?
When an anchor tag link is pressed/hovered how can I disable the blue highlight?
14 Antworten
+ 2
text-decoration: none;
+ 2
<style>
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: underline;
}
/* Good Luck */
</style>
+ 2
SoloProg Now also light blue highlight is coming.
+ 2
Kode Krasher I solved on my own, changed anchor to button so no blue highlight now. 😀
+ 2
Kode Krasher No, I'm done with rock, paper, scissors. This question was for my latest project 😀
+ 2
Hadi Khan Hi, but this is not the place to say hi/hello, it is considered spamming, if anyone reports you, than you may be deactivated.. so better delete your answer. You can DM, or Make a post to say your greetings or informal work.
+ 1
SoloProg I want to remove the blue highlight when it's hovered, I've tried this, but not working. 😣
+ 1
SoloProg this is also not working.. 😖😖
+ 1
put your code here
Oo"
+ 1
Don't use the selector a, use the selector a:any-link. Your problem is with a:active is the selector which allows you to style the link during the time it is active(after a click on it) so you could use the selector to fix your problem, too. I would recommend to take a look at pseudo selectors, they are really useful and very powerful
+ 1
remove #bt:hover & table td:hover
#bt:hover{
background-color:var(--blue1);
}
table td:hover{
background-color:var(--blue1);
}
Good Luck :)
+ 1
Don't forget "Run"
Oo"