mardi 21 avril 2015

Hover on an element, with an element between

I have a div and a css :hover set on it so that when I hover on it, one of its children changes color.

The problem is on click+mousemove, I'm adding a div that follows the mouse around (with jQuery), and this is causing the css :hover not to work. Is there a way to get around this with just css? I figured out how to do it with jQuery but I prefer css if its possible

Here's a demo

Look for #add-bar:hover #add-box


Actually, it looks like the div that follows the mouse isn't the issue, its that I'm holding the mouse button down before hovering on the element.

Aucun commentaire:

Enregistrer un commentaire