31 users online (0 members and 31 guests)  


  Results 1 to 3 of 3

Related

  1. background colours    Forum: HTML Forum
    Replies: 5
  2. Link colours    Forum: HTML Forum
    Replies: 1
  1. #1
    nufzed's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2002
    Location
    HULl
    Posts
    1

    links - same colours

    I want to have 3 links in my home page in red, blue & green
    and I want to have them in the same colours on all the other pages
    I don't want them all one colour or changing colour when they are hyperlinked by Front Page
    don't want them underlined either

    can it be done?
    nufzed

  2. #2
    krak_d's Avatar
    Senior Member

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

    you need to set a class for each link in your CSS.

    a.one:link {color: red;text-decoration: none;}
    a.two:link {color: blue;text-decoration: none;}
    a.three:link {color: green;text-decoration: none;}
    a.one: visited {color: red;text-decoration: none;}
    a.two: visited {color: blue;text-decoration: none;}
    a.three: visited {color: green;text-decoration: none;}
    a.one: hover {color: red;text-decoration: none;}
    a.two: hover {color: blue;text-decoration: none;}
    a.three: hover {color: green;text-decoration: none;}
    a.one: active {color: red;text-decoration: none;}
    a.two: active {color: blue;text-decoration: none;}
    a.three: active {color: green;text-decoration: none;}

    ...im sure theres a quicker way of writing this!?

    hope it helps
    krak_d

  3. #3
    earthdraegon's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2004
    Posts
    3
    I remember there being a way to do this by putting ' color="red" ' or something in the link tag, but either my computer just won't do this or it doesn't work, since I have the same problem on my site.



Tags for this Thread