Web Analytics Made Easy -
StatCounter Define more elements which to apply CSS - CodingForum

Announcement

Collapse
No announcement yet.

Define more elements which to apply CSS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Resolved 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; Apr 9, 2009, 02:43 PM.

  • #2
    Code:
    a#home:hover, a#gallery:hover, a#contact:hover{
    background-position:0px -75px;
    }
    Digitalocean Cloud Hosting (Referral link - get $10 free credit) Fameco

    Comment


    • #3
      That nailed it, and ofc I see the logic now! Thanks

      Comment

      Working...
      X