Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: CSS Multiple id

  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    39
    Thanks
    1
    Thanked 0 Times in 0 Posts

    CSS Multiple id

    I would like to have multiple id and all using hover link for all

    #test1, #test2, #test3, #test4 a:hover{
    color:#0F0;
    }

    this doesn't work. NOT sure why??
    thanks

  • #2
    New Coder
    Join Date
    Jul 2011
    Location
    Australia
    Posts
    47
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by hiyatran View Post
    #test1, #test2, #test3, #test4 a:hover{
    color:#0F0;
    }
    Try putting a comma after #test4

    So it will look like this:

    Code:
    #test1, #test2, #test3, #test4, a:hover{ 
    color:#0F0;
    }

    _______
    Edit

    Oh, sorry, I read wrong and misunderstood the question :-S ... I'd remove my post but I believe it's against the rules?
    Last edited by Asher01; 09-22-2011 at 07:46 AM.
    “Opinion is the medium between knowledge and ignorance.”
    “The old believe everything; the middle aged suspect everything: the young know everything.”

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,797
    Thanks
    6
    Thanked 1,023 Times in 996 Posts
    Code:
    #test1 a:hover, #test2 a:hover, #test3 a:hover, #test4 a:hover{
    color:#0F0;
    }


  •  

    Posting Permissions

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