I tried for a while, but it just wasn't working for me -.-
I want to have my link's text black but the underline red, and then when it's hovered over I want the text red and the underline black. I messed around and looked for a while, but I couldn't get it to work. Could anyone help me? Please and thank you! ^^
Update:I couldn't get border-bottom to work. And I don't want all the links the be this way, only some of them. I had a code for all the links, but it didn't look right. -.-
Copyright © 2024 Q2A.MX - All rights reserved.
Answers & Comments
Verified answer
How To Change Hyperlink Underline Color: http://www.hyperlinkcode.com/change-underline-colo...
Might try using borders instead...
a:link {
text-decoration:none;
border-bottom:1px solid #ff0;
}
a:visited {
border-bottom:1px solid #ccc;
}
a:hover {
border-bottom:1px solid #00f;
}
a:visited {
border-bottom:1px solid #f00;
}
Ron
Underline Color Html
attempt this: Make a css form tag in header portion of html internet site like this: <form form="textual content/css"> /form now define a sort for sophistication "a" like this: .a { colour:black; font:arial; font-length: 14px; } .a:hover { colour:white; <------any colour you opt for } .a:visited { colour:#999999; <------any colour you opt for } now your very final css coding will look like this: <form form="textual content/css"> .a { colour:black; font:arial; font-length: 14px; } .a:hover { colour:white; <------any colour you opt for } .a:visited { colour:#999999; <------any colour you opt for } /form Hoping this could help u.