I have this problem and I'm yet on a conceptual level of understanding, how can we detect if a given element is outside the container (a container with overflow:hidden; property declared);
Here's the context of what we want:
Let's image we are mouse-hover item 3:
We normally have:
item 1
item 2
item 3 - sub 3.1
- sub 3.2
Like this, the sub 3.2 will be out of the flow and not be visible, OR (if we use clearfix on container instead of overflow), it will drop down over other page contents), in order to solve this, we think this one is a better solution, again, supposing we mouse-hover item 3:
item 1
item 2 - sub 3.1
item 3 - sub 3.2
In order to do this, perhaps, we should detect if the element is out of the flow, and, it it his, push the all thing up X px;
If this is a good aproach to solve this, how can we detect if an element it's out of the flow?
If this isn't a good approach, can you please suggest another ?
ps- we are using superfish as a jquery menu solution.