Link color...

Discussion in 'HTML' started by silas, Sep 20, 2003.

  1. silas

    silas Guest

    I'm having a fit trying to set up two sets of links on my page in two
    different colors. Even though I've established two style sheets, one always
    seems to over-ride the other. Can I have different colors for different
    links?

    Thanks

    silas
    **********************************
    Calvin: I used to hate writing assignments, but now I enjoy them. I
    realized that the purpose of writing is to inflate weak ideas, obscure poor
    reasoning, and inhibit clarity. With a little practice, writing can be an
    intimidating and impenetrable fog!

    Homicidal Psycho Jungle Cat, p62-2
     
    silas, Sep 20, 2003
    #1
    1. Advertising

  2. silas

    brucie Guest

    brucie, Sep 20, 2003
    #2
    1. Advertising

  3. silas

    Sid Ismail Guest

    On Fri, 19 Sep 2003 23:29:49 -0400, "silas" <>
    wrote:

    : I'm having a fit trying to set up two sets of links on my page in two
    : different colors. Even though I've established two style sheets, one always
    : seems to over-ride the other. Can I have different colors for different
    : links?


    CSS pseudo-classes

    A.blue:visited {color: #003399;}
    A.blue:link {color: #003399;}
    A.blue:active {color: #003399;}
    A.blue:hover {color: red;}

    A.white:visited {color: #ffffff;}
    A.white:link {color: #ffffff;}
    A.white:active {color: #ffffff;}
    A.white:hover {color: red;}

    and then -

    <a href="blah1.html" class="blue">Blue Link</a>
    <a href="blah2.html" class="white">White Link</a>

    Sid
     
    Sid Ismail, Sep 20, 2003
    #3
  4. silas

    silas Guest

    "Sid Ismail" <> wrote in message
    news:...
    > On Fri, 19 Sep 2003 23:29:49 -0400, "silas" <>
    > wrote:
    >
    > : I'm having a fit trying to set up two sets of links on my page in two
    > : different colors. Even though I've established two style sheets, one

    always
    > : seems to over-ride the other. Can I have different colors for different
    > : links?
    >
    >
    > CSS pseudo-classes
    >
    > A.blue:visited {color: #003399;}
    > A.blue:link {color: #003399;}
    > A.blue:active {color: #003399;}
    > A.blue:hover {color: red;}
    >
    > A.white:visited {color: #ffffff;}
    > A.white:link {color: #ffffff;}
    > A.white:active {color: #ffffff;}
    > A.white:hover {color: red;}
    >
    > and then -
    >
    > <a href="blah1.html" class="blue">Blue Link</a>
    > <a href="blah2.html" class="white">White Link</a>
    >
    > Sid
    >


    Thank you all for your prompt responses (especially Andy who, according to
    the times displayed, actually posted his reply [11:25] before I posted my
    question [11:29]... ;-) )

    Sid, your suggestion worked perfectly. Thanks again.

    Silas
    ********************************************
    Calvin: The hard part for us avant-garde post-modern artists is deciding
    whether or not to embrace commercialism.

    Attack of the Deranged Mutant Killer Monster Snow Goons, p59-2
     
    silas, Sep 20, 2003
    #4
  5. silas

    kayodeok Guest

    "silas" <> wrote in news:vmp766qmbdk197
    @corp.supernews.com:

    > Sid, your suggestion worked perfectly. Thanks again.


    Sid's example is meant to nudge you in the general direction; you
    will get warnings from the CSS Validator if you implement it without
    specifying a background color.

    I think you ought to take another look at the link Brucie provided.

    --
    Kayode Okeyode
    http://www.kayodeok.btinternet.co.uk/favorites/webdesign.htm
     
    kayodeok, Sep 20, 2003
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. moondaddy
    Replies:
    3
    Views:
    38,344
    moondaddy
    Apr 28, 2004
  2. Kevin Spencer

    Re: Link Link Link DANGER WILL ROBINSON!!!

    Kevin Spencer, May 17, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    866
    Kevin Spencer
    May 17, 2005
  3. PJ6
    Replies:
    4
    Views:
    4,897
  4. Matt Adams
    Replies:
    0
    Views:
    892
    Matt Adams
    Aug 26, 2003
  5. Kamaljeet Saini
    Replies:
    0
    Views:
    431
    Kamaljeet Saini
    Feb 13, 2009
Loading...

Share This Page