Hi,
I think it better id I send you to the faq here:
http://www.sitepoint.com/forums/showthread.php?t=171943#
Which answers all your questions and shows you various ways to do it.
Its worth noting that you can never put selectors inside a style decaration as you have done here:
Code:
color01 {
/* new colour link*/
A: color: Green;
A: visited color: #666666;
text-decoration: none
A:VISITED:HOVER {color: black; text-decoration: underline;
}
You style the links by defining them like so:
Code:
.color01 a:link {color:green}
.color01 a:visited {colour:red}
.color01 a:hover {colour:white}
.color01 a:active {colour:yellow}
html:
Code:
<div class="color01">
<a href="#">This link will be green</a>
<a href="#">This link will be green</a>
<a href="#">This link will be green</a>
</div>
Or alternatively like this:
Code:
a.color01:link {color:green}
a.color01:visited {colour:red}
a.color01:hover {colour:white}
a.color01:active {colour:yellow}
html:
Code:
<div>
<a class="color01" href="#">This link will be green</a>
<a href="#">This will be default color</a>
<a href="#">This will be default color</a>
</div>
Read the FAQ for a thorough explanation 
paul
Bookmarks