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
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts

    Define more elements which to apply CSS

    Hi,

    I have some elements which has the same behaviour on hover. However, I'm not sure on how to define them properly when I have more ID's applied to one CSS attribute. This is what I tried but it doesn't work:

    Code:
    a#home #gallery #forums #contact:hover {background-position:0px -75px;}
    Last edited by CaptainB; 04-09-2009 at 07:43 PM.

  2. #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,997
    Thanks
    164
    Thanked 2,242 Times in 2,229 Posts
    Code:
    a#home:hover, a#gallery:hover, a#contact:hover{
    background-position:0px -75px;
    }
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  3. Users who have thanked abduraooft for this post:

    CaptainB (04-09-2009)

  4. #3
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    That nailed it, and ofc I see the logic now! Thanks


 

Posting Permissions

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