|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Does anyone know if/how I can get a CSS script for link classes that would only change the colour of the underline like the one at the top of Altavista's translate page??
I have tried viewing the source but can't seem to put my finger on it. Any help would be greatly appreciated. Cheerz, sheermonkey. |
|
#2
|
|||
|
|||
|
a:link {
color:#6699cc; text-decoration:none; } a:hover { color:#f60051 text-decoration:underline; } a:visited { color:#999999; text-decoration:none; } see if that stimulates some brain activity |
|
#3
|
|||
|
|||
|
a:link {
color:#6699cc; text-decoration:none; } a:hover { color:#f60051 text-decoration:underline; } a:visited { color:#999999; text-decoration:none; } see if that stimulates some brain activity |
|
#4
|
|||
|
|||
|
Use another tag to override the <A> tag colour.
Code:
<html
<head>
<style>
a:hover{color:#f00;}
a{text-decoration:underline;}
span.link{color:#000;}
</style>
</head>
<body>
<a href="#"><span class=link>Click Me</span></a>
</body>
</html>
|
|
#5
|
||||
|
||||
|
to use less code, use borders instead of text-decoration:
Code:
a:link {
text-decoration:none;
border-bottom:1px solid black;
}
a:visited {
border-bottom:1px solid grey;
}
a:hover {
border-bottom:1px solid red;
}
the text-decoration:none is inherrited by the rest... |
|
#6
|
|||
|
|||
|
thankU dudes, PHP-newb + stinkoman helped alot.... awelch didnt do what i wanted it 2 but thnkz 4 tha reply anywayz.
sheermonkey |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS underline color on links?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|