Currently, I am developing an interface that involves a list of items inside a scrollable div. Some of these items have rollover menus that extend beyond the boundaries of the div when hovered over. It is crucial for the website to be compatible with disabled scripting, so I am exploring the possibility of implementing the interface using just CSS before considering other alternatives.
I have included some examples below. The specific menu in question is situated on the right side under the heading 'select projects'. The third item from the top on each page contains a rollover menu.
To ensure that the rollovers remain positioned correctly relative to their parent even when the scroll position changes, I have set the parent list items as relative and the child unordered lists as absolute.
Example 1
However, when overflow:auto is activated and scrolling occurs, the rollovers get truncated and do not display properly. Example 2
I attempted removing the relative positioning of the parent list items while maintaining the absolute positioning of the rollovers to enable them to extend outside the div, but then they fail to adjust their positioning correctly when the scroll position changes. I can only provide two links, but if you would like a visual demonstration, it can be found here: eypaedesign.com/markets-rollover-issue-no-relative.htm
Aside from altering the user interface, are there any combinations of CSS properties that could solve this issue? One possible solution could involve positioning the entire div as absolute and adding significant left padding for the rollovers to occupy, but this approach does not seem very elegant.
Thank you all for your help!