|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Css
Can i specify two different styles for a link?
I have one set as a link with colour grey, but when a link is against a grey background, it cannot be seen, so can i define two link colours in my CSS stylesheet? If so, how? |
|
#2
|
||||
|
||||
|
Code:
a:link
{
color: grey;
}
.foo a:link
{
color: red;
}
Code:
<p>The link <a href="#">here</a> should be grey.</p> <p class="foo">The link <a href="#">here</a> should be red.</p>
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Css |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|