I have this problem, and I'm still at a conceptual level of understanding how we can determine if a given element is outside the container (container with overflow: hidden, declared property);
Here is the context of what we want:
Let the image we hover over element 3:
Usually we have:
item 1 item 2 item 3 - sub 3.1 - sub 3.2
Similarly, sub 3.2 will exit the stream and not be visible, OR (if we use clearfix in the container instead of overflow), it will go down over the other contents of the page) to solve this, we think this is the best solution, again, suppose we hover over item 3:
item 1 item 2 - sub 3.1 item 3 - sub 3.2
To do this, perhaps we need to determine if the element is outside the stream, and this is it, click everything on X px;
If this is a good approach to solve this problem, how can we determine if there is an element from the stream?
If this is not a very good approach, can you suggest another?
ps- we use superfish as a jQuery menu solution.
Mem
source share