How to change link color?

Discussion in 'CSS' started by jawinn, Feb 22, 2008.

  1. #1
    I have a problem where my html links are showing up as white text. This doesn't work too well with my site's white background. How do I change the font color for my html links?

    thx,
     
    jawinn, Feb 22, 2008 IP
  2. Chawman

    Chawman Peon

    Messages:
    150
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can simply add a font tag around the words that you want to change the color for. For example:

    <font color="#0066CC">Hi there</font>

    Here is a font color chart for the numbers: http://www.immigration-usa.com/html_colors.html

    Regards,

    Tony
     
    Chawman, Feb 22, 2008 IP
  3. scoopy82

    scoopy82 Active Member

    Messages:
    838
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    70
    #3
    Look thru your style sheets and find the entry in there that is affecting the color. It will look something like one of these:
    You can learn more about CSS and links here:
    http://www.w3schools.com/css/css_pseudo_classes.asp
     
    scoopy82, Feb 22, 2008 IP
    jawinn likes this.
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That's actually a VERY bad idea, especially given that the FONT element has been deprecated (rendered obsolete) for at least a decade now; especially when a much better (and far more accessible and easier to maintain) alternative exists - CSS.
     
    Dan Schulz, Feb 22, 2008 IP