I am looking for the same end result with the sub menu’s being separated.
Galanx: I think I know what you are saying and i have achieved what you want using the menus the way they are. I position each sub menu using position:absolute and left align it and display and hide when needed.
Look here for some examples https://www.fin-ex.com/v2
The problem i have is that I am making a mobile friendly site and because the elements are positioned absolutely, they do not drop below each other when the screen is made narrow.
So for example. at the moment i have this
<ul class="menu">
<li>link 1
<ul class="submenu-1">
<li>submenu-1 link 1</li>
<li>submenu-1 link 2</li>
</ul>
</li>
<li>link 2</li>
<li>link 3
<ul class="submenu-2">
<li>submenu-2 link 1</li>
<li>submenu-2 link 2</li>
</ul>
</li>
</ul>
but what I really want is
<ul class="menu">
<li>link 1</li>
<li>link 2</li>
<li>link 3</li>
</ul>
<ul class="submenu-1">
<li>submenu-1 link 1</li>
<li>submenu-1 link 2</li>
</ul>
<ul class="submenu-2">
<li>submenu-2 link 1</li>
<li>submenu-2 link 2</li>
</li>
this way I don’t have to use position: absolute and I can just hide and display when I want and they will just stack below each other the correct way.
Everybody is talking about setting up a custom “walker” or something like that but I haven’t figured it out yet. perhaps someone could help us out here