I am in the process of creating a navigation menu for a website that includes submenus. However, I am encountering an issue with the submenu sliding down and not lying behind the main navigation as intended. I have attempted to use z-index to address this problem without success. Could it be that since the submenu is a child of the LI element, it is unable to lie behind?
Due to the inclusion of an image sprite, the code has become quite lengthy. To better illustrate the issue, I have uploaded the code to pastie:
I have also provided some images to further clarify my explanation.
Desired outcome: http://imgur.com/WeU5T.png
Current outcome: http://imgur.com/0ZC4v.png