Results 1 to 3 of 3

Thread: Multiple id

  1. #1
    Join Date
    Mar 2010
    Location
    Canada
    Posts
    32
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default 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. #2
    Join Date
    Mar 2007
    Location
    Dublin, Ireland
    Posts
    23
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Your CSS is wrong. Try this:

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

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    It would be easier to use a class for all of them and use IDs also if you need them.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •