I am trying to build a navigation menu using nested lists, however whenever I set a height for the li’s it breaks the lists and the sub menus lay over the final li, I have link to what I mean,
How can I fix my code so I achieve something similar to the following?
- List item
- List item
- Sub List item
- Sub List item
- Sub List item
- Sub List item
- List item
Change your CSS to this.
What I did, is put a margin-left of 60 only on your sub navigation. This now pushes that UL out from the left and gives it the appearance your looking for.