Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Question on hovering elements

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #46577
    itsmejainh
    Member

    Hi All,

    I just went through beautiful article on [Animation using CSS3](http://www.the-art-of-web.com/css/css-animation/#.UeteitI6C8F “Animation using CSS3”) (all of you must be aware of this).

    I have a question on point 6 (Hover over one element to affect another). I understood the event that on hovering Box3, we can animate/play with Box4. I was curious to know if we can do vice-versa too i.e. on hovering Box4, move/resize Box3.. I tried this but didn’t work out.

    [Here is the link to test fiddle](http://jsfiddle.net/y8t3c/ “Here is the test fiddle”) – on hovering Box4, I am actually reducing Box3 size to 50px, but it’s not happening. Any suggestions on how to achieve this.

    #143839
    Paulie_D
    Member

    You can’t select ‘parents’ of elements or ‘older’ (earlier in the DOM) siblings with CSS

    http://net.tutsplus.com/tutorials/html-css-techniques/the-30-css-selectors-you-must-memorize/

    #143843
    Paulie_D
    Member

    I would say that, from my limited knowledge of Jquery, these kinds of connections are **very** simple and the code is **very** short.

    #143852
    Kuzyo
    Participant

    here with jQuery :

    http://jsfiddle.net/wu7Vt/

    Very ineteresting, if there is opportunity to do it with css only

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.