+ 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?

8th Sep 2021, 5:17 AM
Shobhit :)
Shobhit :) - avatar
14 Antworten
+ 2
text-decoration: none;
8th Sep 2021, 5:27 AM
SoloProg
SoloProg - avatar
+ 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>
8th Sep 2021, 5:31 AM
SoloProg
SoloProg - avatar
+ 2
SoloProg Now also light blue highlight is coming.
8th Sep 2021, 6:32 AM
Shobhit :)
Shobhit :) - avatar
+ 2
Kode Krasher I solved on my own, changed anchor to button so no blue highlight now. 😀
9th Sep 2021, 2:23 AM
Shobhit :)
Shobhit :) - avatar
+ 2
Kode Krasher No, I'm done with rock, paper, scissors. This question was for my latest project 😀
9th Sep 2021, 9:22 AM
Shobhit :)
Shobhit :) - avatar
+ 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.
9th Sep 2021, 2:50 PM
Shobhit :)
Shobhit :) - avatar
+ 1
SoloProg I want to remove the blue highlight when it's hovered, I've tried this, but not working. 😣
8th Sep 2021, 5:29 AM
Shobhit :)
Shobhit :) - avatar
+ 1
SoloProg this is also not working.. 😖😖
8th Sep 2021, 5:34 AM
Shobhit :)
Shobhit :) - avatar
+ 1
put your code here Oo"
8th Sep 2021, 5:38 AM
SoloProg
SoloProg - avatar
+ 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
8th Sep 2021, 5:47 AM
Knäcke Brot
Knäcke Brot - avatar
+ 1
remove #bt:hover & table td:hover #bt:hover{ background-color:var(--blue1); } table td:hover{ background-color:var(--blue1); } Good Luck :)
8th Sep 2021, 6:30 AM
SoloProg
SoloProg - avatar
+ 1
Don't forget "Run" Oo"
8th Sep 2021, 6:41 AM
SoloProg
SoloProg - avatar