Underlined to mouse hover, In need of code |
Underlined to mouse hover, In need of code |
WindowMan |
Apr 26 2022, 05:14 PM
Post
#1
|
Group: Members Posts: 2 Joined: 23-October 21 Member No.: 28,153 |
I would like to change this code:
<a href=test.htm> Click here for the test. </a> in which Hello world is underlined to No underline and a mouse hover will change the color to blue. |
pandy |
Apr 27 2022, 10:07 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
CODE a:hover { text-decoration: none; color: blue; background: inherit } Or if you mean it should never be underlined... CODE a { text-decoration: none } a:hover { color: blue; background: inherit } http://www.w3.org/TR/CSS21/selector.html#link-pseudo-classes http://www.w3.org/TR/CSS21/selector.html#d...-pseudo-classes |
Lo-Fi Version | Time is now: 28th March 2024 - 07:53 AM |