I’m creating a CSS drop down menu which is going well so far, however I have a problem with the width the <li> or <a> in the sub menu.
If you hover over ‘About Us’ you’ll all of the sub menu links are different widths. I’ve tried setting both elements to width: 100% but I’m guessing the problem is something to do with the <ul> being absolutely positioned and not having a fixed width.
Could you please point me in the right direction to fix this.
NOTE: This probably won’t work in earlier versions of IE yet, that’s something I’m going to be working on next
See this updated jsFiddle
Set the width of it to be auto. I have also included a z-index so it renders above the other elements
HTML
CSS