|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
different link colour in css for hyperlinks??
i currently have the following code for links..
Code:
a {
color:#666666;
font-size:11px;
text-decoration:none;
font-weight:600;
font-family: arial, helvetica, sans-serif;
}
a:link {color:#666666;}
a:visited {color:#333333;}
a:hover {background-color:#eee;}
is there a way of having another set so that some have the colour settings as above and another set have the colour settings that are blue or something??? any suggestions would be great.... thanks RF
__________________
|
|
#2
|
||||
|
||||
|
Use sub-elements
Code:
#navigation a, #navigation a:link Code:
<div id="navigation"> <a href="foo.html">Foo</a> </div> Code:
a.foo, a.foo:link Code:
<a class="foo" href="foo.html">Foo</a>
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
|
#3
|
||||
|
||||
|
Marvelous... i will try it and see thank you very much
![]() |
|
#4
|
||||
|
||||
|
thanks very much for that, i used the classes method as that made more sense to my little brain
![]() thanks for your help RF |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > different link colour in css for hyperlinks?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|