Question:

How to change links when I have CSS ?

by  |  earlier

0 LIKES UnLike

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/images.htm

I want the "One - Two" to have that style, but not the rest of the links.

[ : Thanks!

 Tags:

   Report

1 ANSWERS


  1. In your CSS file, if you do something like:

    .nav a {

    color: red;

    }

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

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

    .nav a:visited {

    color: green;

    }

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.