Question:

How do I change the colors of the links in this area?

by  |  earlier

0 LIKES UnLike

http://i38.tinypic.com/ostp5l.png

I want to change the link color (with the red circle) so the color isn't the same as the one with the yellow circle: how do I do that?!

 Tags:

   Report

1 ANSWERS


  1. Use a style sheet or add inline styles to the HTML page (CSS files are easier to manage). You can set all kinds of options for anchors in the CSS page, and just add the CSS class name to the links you want.

    Use the link below as a reference.

    In this case, you could have a link class:

    .anch_red {

        color: red;

    }

    and

    .anch_yellow {

        color: yellow;

    }

    Set the yellow link like this in your HTML file:

    <a class="yellow" href="blahblah">Link Text</a>

    Now, you can also use the pseudo-classes (in the same link below) to make the colors different when the user hovers over the link, or when the link has been visited. CSS gives you a lot of flexibility.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.