CSS ?

Out of context: Reply #6

  • Started
  • Last post
  • 7 Responses
  • monNom0

    you could set a global style for your links and then have different classes foreach colour

    eg:

    a {font-size: 12px; text-decoration: none; etc...}
    .link1(color: #ff0000;}
    .link2(color: #00ff00;}
    .link3(color: #0000ff;}
    .link4(color: #cccccc;}
    .link5(color: #ffcccc;}
    .link6(color: #ccffcc;}

    a href="#" class="link1"
    a href="#" class="link2"
    etc...

    that way should require less code and provide for easy editing across the site...

    I'm pretty sure the last style declaration is the one that counts when CSS is parsed, so if you did have another link assigned, or even another styyle sheet in the head of your document, it would overwrite your linked styles (only those which have a conflict).

View thread