I am currently working on a website where the navigation is aligned to the right side.
However, I am facing an issue where the last menu item dropdown extends beyond the page because it is absolutely positioned to the left of its parent element.
I am actively seeking a solution to address this problem with my navigation menu.
jsfiddle -
http://jsfiddle.net/ashconnolly/6gjVr/
I am unable to manually set a fixed left position using 'xx' because the width of the last menu item may vary depending on the text content within it. That's why I am using JavaScript to dynamically adjust the position.
I am close to finding a solution, but I need to figure out how to apply a variable absolute left position only on hover. If possible, a CSS-only solution would be ideal, but I haven't found one yet.
Any assistance or advice on how to overcome this issue would be greatly appreciated! :)
Edit: updated explanation.