Children inside <a href> trigger mouseout. How to prevent that?

Posted by stagas on Stack Overflow See other posts from Stack Overflow or by stagas
Published on 2010-03-22T16:02:01Z Indexed on 2010/03/22 16:11 UTC
Read the original article Hit count: 306

Filed under:
|
|
|
|

I have this:

<a href="javascript:void(0);">
   <div>
      <span>some content</span>
      <span>some content</span>
   </div>
</a>

The problem is hovering the mouse over from one <span> to another triggers an instant mouseout and mouseover again even though they have no padding or margin between them. Even on the browser's status bar the link flickers for an instant. How can this be prevented?

© Stack Overflow or respective owner

Related posts about html

Related posts about mouseout