#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    16
    Rep Power
    0

    different link colors with css


    I'd like to be able to make some links on my page one color and others a different color so they show up appropriately on different backgrounds. how would i go about doing this?

    thanks
  2. #2
  3. No Profile Picture
    Super Moderator
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,009
    Rep Power
    2791
    a.blue{background:blue;}
    a.green{background:green;}

    <a href="foo.html" class=blue>
    <a href="bar.html" class=green>

IMN logo majestic logo threadwatch logo seochat tools logo