css rollover targeting div ?

Discussion in 'CSS' started by santiav, Dec 30, 2005.

  1. #1
    hey !

    I´ve a doubt

    is there any way to make something like this?:

    For example

    i´ve following DIVs

    #wrapper - #header - #button
    - #content
    - #footer

    I know that u can do remote rollover in same DIV, but can u do it for other DIV targeting ?

    for example, i want when rollover some text or image in #buttons DIV, that change background image of content.

    I tried
    #header #button #content a:hover { etc...
    #header #button a:hover #content { etc...

    nothing of that worked

    Further information that u need just tell me

    thanks
     
    santiav, Dec 30, 2005 IP
  2. the_pm

    the_pm Peon

    Messages:
    332
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm not positive whether you can do this at all, but I know for certain you cannot do it in Internet Explorer, for the simple reason that IE doesn't understand it when the common link pseudo-classes are applied to non-linking objects.

    This is more of a behavioral item than a stylistic one though. It seems better suited to JavaScript, for which all you'd need is a very simple DOM function.
     
    the_pm, Dec 30, 2005 IP
    Colleen likes this.
  3. santiav

    santiav Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ok thanks for answer !

    Well, i will use JS then. :)
     
    santiav, Dec 30, 2005 IP