Forums

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

Home Forums CSS [Solved] moves div when hover list items

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #150349
    asma
    Participant

    how can i make green div move when hover over list items. e.g when hover ist list item green div gets amrgin left of 10px similarly hovering over other list items makes that much change in margin left as mentioned. here is my jsFiddle http://jsfiddle.net/KYAXQ/1/

    #150351
    Paulie_D
    Member

    I don’t think you can do this will CSS as the div is not adjacent to or a child or sibling of the list item to be hovered so there is no way to select it based on the li.

    JS is the answer here.

    #150353
    asma
    Participant

    oky.yes i have already done this with JS. just wondring if it is possible with css3 selectors.
    thanks Paulie_D i appreciate ur help. :)

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