Friday, June 3, 2011

How to change links when I have CSS ?

I have an outside-linked CSS for the page below. I am making a nav at the top, and I don't want the links below the bolded words to be ruled by the css. How do I fix the problem ?



http://www.freewebs.com/mandeykayy/image

I want the %26quot;One - Two%26quot; to have that style, but not the rest of the links.



[ : Thanks!How to change links when I have CSS ?In your CSS file, if you do something like:



.nav a {

color: red;

}



it will only apply to links in the %26quot;nav%26quot; section, because you have given that div element a class of %26quot;nav%26quot;.



Changing the color of visited links is done with the :visited pseudo-class, e.g.:



.nav a:visited {

color: green;

}