+ Reply to Thread + Post New Thread
Results 1 to 7 of 7

Thread: Need Help With CSS

  1. #1
    Noobie
    Join Date
    Apr 2008
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need Help With CSS

    i can't figure out why this doesn't work. i know how to change the color of
    the text, but i can't change the color of the hyperlink:

    when someone hovers over the data cell i want the link to change from blue
    to red. so far only regular text will change color but not hyperlinks...

    ---

    td:hover {
    color:#FFFFFF;
    a:hover color:#FF0000;
    }

    ---

  2. Shorten URL    SEO Services    Buy Xrumer

    Sponsored Links

  3. #2
    Noobie
    Join Date
    Apr 2008
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Code:
    td:hover{
    color: #FFFFFF;
    }
    
    td:hover a:hover {
    color: #FF0000;
    }
    haven't actually tested that, but that's the general idea. you can't embed a "a:hover" within another class like you are doing

  4. #3
    Noobie
    Join Date
    Apr 2008
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Or you can try

    Code:
    a:link {
    ****color: #FF0000;
    ****text-decoration: none;
    ****}
    a:visited {
    ****text-decoration: none;
    ****color: #333333;
    ****}
    a:hover {
    ****text-decoration: underline;
    ****color: #00FF00;
    ****}
    a:active {
    ****text-decoration: none;
    ****color: #333333;
    ****}
    Depending on what you want to accomplish.

  5. #4
    Noobie
    Join Date
    Apr 2008
    Posts
    156
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I think both these replies covered it, but wanted to point you to a site with tutorials in case you need anything else.

    Code:
    http://v1.reinspire.net/blog/2005/09/19/css_hyperlink_styling/

  6. #5
    Noobie
    Join Date
    Apr 2008
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanx guys... this is what i finally got and it works fine!
    (could never figure out how to fix the multi-embed problem. )

    td:hover a:link{
    color:#FF0000;
    backgroundcolor:#FFFFFF;
    text-decoration:none;
    }


    td:hover {
    color:#FF0000;
    background-color:#FFFFFF;
    }

  7. #6
    Noobie
    Join Date
    Apr 2008
    Posts
    195
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    always look for missing { } ; : in your css, then typos, that will cure half your css ailments...

  8. #7
    Junior SEO Specialist
    Join Date
    Oct 2011
    Posts
    149
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i prefer that u will use both the color in 2 differnt id . it will work

+ Reply to Thread

Tags for this Thread

Posting Permissions

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