Change two backgrounds at once?

Discussion in 'CSS' started by le007, Sep 16, 2008.

  1. #1
    Hi all,

    I'm trying to change two things on one hover - is that possible?
    I have the rollover image changing fine but I want the div that its housed in to change its background at the same time too? Any ideas?

    Thanks.
     
    le007, Sep 16, 2008 IP
  2. rikun

    rikun Peon

    Messages:
    85
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I wanna say that it isn't possible, if it isn't for the same element that is. I could be wrong since I've never tried it. I suggest that if you really want to change the background, add a javascript onmouseover event and change the background that way.

    Post your css and html so we understand what you are trying to do better.
     
    rikun, Sep 17, 2008 IP
  3. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    Heh rikun, thanks for the reply - I got away with it using an image map - I guess its a hack but it works. Thanks
     
    le007, Sep 17, 2008 IP