HTML code for changing the color of hyperlinks?

Discussion in 'HTML & Website Design' started by Angeleyes, Sep 29, 2006.

  1. #1
    Recently someone informed me that the reason my forums aren't being indexed much on google is because the program I use on the homepage (articlelive) uses redirects for all of the pages. So I changed the forums link to a direct link.

    However, articlelive by default makes all links blue. Does anyone know the code I can use to change the color of a hyperlink just on one link?

    You can see the problem here http://www.IHeartPaws.com
     
    Angeleyes, Sep 29, 2006 IP
  2. jrlane7

    jrlane7 Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just place the color tag inside the hyperlink tag.

    Example:

    <a href="http://www.yahoo.com"><font color="FF0000">Yahoo</font></a>
    HTML:
     
    jrlane7, Sep 29, 2006 IP
    Angeleyes likes this.
  3. Angeleyes

    Angeleyes Peon

    Messages:
    190
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank you!!!! I'll go try it out now! :)
     
    Angeleyes, Sep 29, 2006 IP
  4. Angeleyes

    Angeleyes Peon

    Messages:
    190
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It works :) Thank you so much... I really appreciate it!
     
    Angeleyes, Sep 29, 2006 IP
  5. jrlane7

    jrlane7 Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Glad I could help!
     
    jrlane7, Sep 29, 2006 IP
  6. thevenerablez

    thevenerablez Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    you can use CSS and the a attribute. That's the most current. Font tags are deprectated.
     
    thevenerablez, Sep 30, 2006 IP
  7. Kirtan

    Kirtan Peon

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I agree thevenerablez. As i can see your sources code there are three style sheets used in your page. Why dont' you put a style for those links in one of your style sheet?
     
    Kirtan, Oct 1, 2006 IP
  8. Angeleyes

    Angeleyes Peon

    Messages:
    190
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks thevenerablez and Kirtan... but Articlelive uses templates and it confuses me a bit (basically being a novice). I am really not sure how to do that. :(
     
    Angeleyes, Oct 1, 2006 IP
  9. Johan007

    Johan007 Guest

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    In your HTML file add a class attribute to the "a" tag:
    <p>You really need to <a href="/****" [COLOR="red"]class="altlink"[/COLOR] >use CSS here </a> punk!</p>
    Code (markup):
    Put this in your .CSS file:
     [COLOR="red"].altlink{color:red} [/COLOR]
    Code (markup):
    Alternatively if you can only access HTML via your templates you could use this less desirable method in your HTML file:
    <p>You really need to <a href="/****" [COLOR="Red"]style="color:red"[/COLOR]>use CSS here</a>  punk!</p>
    Code (markup):
     
    Johan007, Oct 2, 2006 IP
  10. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Your forum looks like it is powered by vbulletin (and an outdated version at that). It includes a huge list of styles that really should be in a separate CSS file. It also looks like your main page is using a template that pulls from several CSS files in http://www.iheartpaws.com/templates/Bright Light/Styles/

    You definitely want to use styles (CSS) and NOT the font tag as suggested above. You also may wish to use http://validator.w3.org/ to see where you can improve the site. Templating engines are much easier to modify than you might believe :)
     
    Gordaen, Oct 2, 2006 IP
  11. Angeleyes

    Angeleyes Peon

    Messages:
    190
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #11
    What does this have to do with anything? It's on the last version and I haven't had the time recently to update it, originally I was waiting to hear the experiences that others had with the upgrade and got very busy. Articlelive (as I stated is being used on the homepage) pulls from many templates that's just the way it works... and it confuses the crap outta me. :D

    Additionally, I have no idea how to edit the CSS files on Vbulletin... isn't it supposed to be done right as sold??? I will definitely check out that link when I get home from work. Thank you!!!!
     
    Angeleyes, Oct 2, 2006 IP
  12. Angeleyes

    Angeleyes Peon

    Messages:
    190
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I think I need to get a partner to help with the site and make it make money... then of course, profit share. I'm too clueless for words :(
     
    Angeleyes, Oct 2, 2006 IP