Change Link Colors Using CSS?

Discussion in 'Co-op Advertising Network' started by fisher318, Feb 15, 2005.

  1. #1
    Hello,

    I would really like to be able to alter the appearance of the coop ads to match the rest of my website. I am not real competent with css but I manage to get by. Normally, I would put the following code in the header, and then just label a class to each individual link that I want to take on those characteristics, can anyone offer a suggestion on how to transfer those to the coop ads?

    <style type="text/css">
    <!--
    A.one:link { text-decoration: none; color:#FFFFFF }
    A.one:visited { text-decoration: none; color:#FFFFFF }
    A.one:active { text-decoration: none; color:#FFFFFF }
    A.one:hover { text-decoration: none; color:#152D4F}

    A.two:link { text-decoration: none; color:blue }
    A.two:visited { text-decoration: none; color:blue }
    A.two:active { text-decoration: none; color:blue }
    A.two:hover { text-decoration: none; color:#BE8D62}

    -->
    </style>
     
    fisher318, Feb 15, 2005 IP
  2. 2ndPlatform

    2ndPlatform Peon

    Messages:
    138
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm not familiar with the co-op stuff yet... but to use what you have written up above, you need to have a class in your HREF...

    I.e. <a href="http:www.domain.com" class="one">link</a>

    You probably know that much already. So if you can't alter those co-op links and add a class, the other thing that I can think of is having a default link style. if you do this;

    a:link { text-decoration: none; color:blue }
    a:visited { text-decoration: none; color:blue }
    a:active { text-decoration: none; color:blue }
    a:hover { text-decoration: none; color:#BE8D62}

    That will be applied to all links. Problem there is that you can only have one style... you need to be able to get that class in there.

    Good luck!
     
    2ndPlatform, Feb 15, 2005 IP
  3. fisher318

    fisher318 Guest

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the help, but I think I need to find a way to get the class in there. So if anybody else has any suggestions I could use them.
     
    fisher318, Feb 15, 2005 IP