I have read several topics like:
and many others, but I could not find an answer for what I search for. When an element is placed above other elements, the interaction with these is broken (no events coming through). This means, the underlying text can not be selected or an elements events are not triggered. Here’s a demo on jsFiddle.
As you can see, there are two problems.
- As already mentioned, text can not be selected nor the hover-event is propagated to the
div.hoverelement. - The size of the
div.shadowelement is not absolutely correct. That is why part of thediv.hoverelement is out of the shadow-box (and there, the hover-event reaches the hover-element).
For the first problem, I’d appreciate a CSS only solution, but I’d be satisfied with some JavaScript as well.
Appendix: Problem 2. on Mozilla Firefox 15.0.1

pointer-eventsproperty. Set it ondiv.shadowper this jsFiddle.Update
For #2 remove the fixed height on
div.wrapperand addoverflow: auto(this will allow the margin ondiv.hoveredto have some effect ondiv.wrapper). See this jsFiddle.