21 users online (0 members and 21 guests)  

Thread: Link colors


  Results 1 to 8 of 8

Related

  1. Unwanted link border colors    Forum: HTML Forum
    Replies: 3
  2. Help with text/link colors    Forum: Graphics Forum
    Replies: 10
  3. Replies: 6
  4. Replies: 1
  5. Changing link colors in middle of page    Forum: HTML Forum
    Replies: 1
  1. #1
    cokesodanotd's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Apr 2004
    Posts
    56

    Link colors

    Hi again, i was curious as to what you would type in as the code for changing link colors, i don't remember what the code is the site is www.freewebs.com/the-red-revolution
    thanks!

  2. #2
    krak_d's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2004
    Location
    Liverpool
    Posts
    166
    Hi cokesodanotd,

    change the hex codes in this portion of your code to get different link colors.

    HTML Code:
    a.blue:link {color: #0000ff;}
    a.blue:active {color: #0000ff;}
    a.blue:visited {color: #0000ff;}
    a.blue:hover {color: #0000ff;}
    A list of web safe colors and there hex code can be found http://www.visibone.com/colorlab/

    krak_d

  3. #3
    cokesodanotd's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Apr 2004
    Posts
    56
    alright, but where do i put that code?

  4. #4
    krak_d's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2004
    Location
    Liverpool
    Posts
    166
    The example of code was taken straight from your source code. You just need to alter the hex values!

  5. #5
    cokesodanotd's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Apr 2004
    Posts
    56
    i don't think its working, i tryed changing the hex colors, do i have to alter something else? the problem is the fact that the link is red on red after you click it the first time, and it becomes inviseble i must be doing something wrong....

  6. #6
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    take out the .blue from each line so it reads

    Code:
    a:link {color: #0000ff;}
    a:active {color: #0000ff;}
    a:visited {color: #0000ff;}
    a:hover {color: #0000ff;}

  7. #7
    cokesodanotd's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Apr 2004
    Posts
    56
    thanks! its working now

  8. #8
    krak_d's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2004
    Location
    Liverpool
    Posts
    166
    take out the .blue from each line ..
    Thanks Dave,

    i need to wake up!



Tags for this Thread