Different Color Links-Same Document-How Do I Do This?

Discussion in 'HTML & Website Design' started by TheLeader, Mar 24, 2008.

  1. #1
    I want to have a section of links for Anchor Tags that are a different color than the hyperlinks for the rest of my page (the ones that go to different pages). How do I do this? I tried CSS and so far have not been able to get this to work right and am not sure why.

    Anyway, sorry for the stupid question.

    thanks in advance for your help.
     
    TheLeader, Mar 24, 2008 IP
  2. atomsplash

    atomsplash Peon

    Messages:
    167
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you post your current code? Should be fairly easy with CSS or without.
     
    atomsplash, Mar 24, 2008 IP
  3. Trapped

    Trapped Well-Known Member

    Messages:
    1,832
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    130
    #3
    Well if that section where the links will be placed already has a class/id defined through CSS you can continue as (for class)
    .section a { color:#0000FF; text-decoration:underline }
    .section a:hover { color:#0000FF; text-decoration:none }
    Code (markup):
    and you know the procedure for ID (same just without the dot but with #)
     
    Trapped, Mar 24, 2008 IP