SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot Da Mouse's Avatar
    Join Date
    Aug 2002
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS link trouble

    Code:
    :link:hover{background-color:#000033;color:yellow;text-decoration:none;}
    :link{text-decoration:none;}
    :link:visited{text-decoration:none;}
    :link:active{text-decoration:none;}
    doesn't seem to work any ideas? a use

    <a href

    if thats any help
    I am DaMouse
    Nobody can beat me so long as I'm stubborn -DaMouse
    Squeak

  2. #2
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    UK
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: CSS link trouble

    Code:
    a:link{text-decoration:none}
    a:visited{text-decoration:none}
    a:active{text-decoration:none}
    a:hover{background-color:#000033; color:yellow; text-decoration:none}

  3. #3
    SitePoint Zealot Da Mouse's Avatar
    Join Date
    Aug 2002
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for that matey
    I am DaMouse
    Nobody can beat me so long as I'm stubborn -DaMouse
    Squeak

  4. #4
    SitePoint Enthusiast
    Join Date
    Jan 2002
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Re: CSS link trouble

    isn't this:

    Code:
    a.link{text-decoration:none}
    a.link:visited{text-decoration:none}
    a.link:active{text-decoration:none}
    a.link:hover{background-color:#000033; color:yellow; text-decoration:none}
    better?

  5. #5
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    UK
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe that would only work for links with a 'link' class.

  6. #6
    SitePoint Zealot Da Mouse's Avatar
    Join Date
    Aug 2002
    Posts
    111
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I never new you could apply classes through

    a.classtra

    all I did was

    atra.class

    no wonder it didn't work
    I am DaMouse
    Nobody can beat me so long as I'm stubborn -DaMouse
    Squeak


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •