It is important to note that you may need to expand the Result Box in order to see the full menu.
The issue I am currently facing involves fixing a submenu that appears when hovering over the Men and Women <li>
elements. The hidden div is placed inside the <li>
to ensure that the submenu remains visible even when moving your cursor away from the link. However, the problem arises when other menu items are being pushed down as a result of this setup.
In my previous version of the menu, which can be viewed here, everything was working correctly. But now, I have been requested to align the first three links to the left and the last link to the right. By simply adding floats to achieve this alignment, it seems to be causing the issue with the submenu positioning. I have experimented with changing the display and position properties, but the submenu ends up appearing at the end instead of below the menu.
I have exhausted most of my ideas on how to resolve this issue. One potential solution could involve using the x and y coordinates along with CSS to force the div into the correct position, although I am hesitant about its effectiveness if the div remains within the <li>
. Are there any alternative methods I could explore to ensure that my submenu works properly while maintaining the alignment of the menu?