https://jsfiddle.net/ccaf8msu/1/
<nav class="navbar navbar-default">
<ul class="nav navbar-nav navbar-right">
<li class="first leaf"><a href="/front">Frontpage</a></li>
<li class="leaf"><a href="/library" class="container-one">Library</a></li>
<li class="expanded active-trail active"><a href="/om-websitet" class="active-trail active">About the website</a>
<ul class="nav navbar-nav navbar-right">
<li class="first leaf"><a href="/en-sode">About the book</a></li>
<li class="last leaf"><a href="/en-sode">The authors</a></li>
</ul>
</li>
<li class="leaf"><a href="/categories" class="container-two">Categories</a></li>
<li class="last leaf webshop-link"><a href="http://google.dk">Webshop</a></li>
</ul>
</nav>
In my design, I have a two-level menu that I want to display horizontally for both levels. However, when the second level is active, the menu item 'about the website' displays with a lot of whitespace after it.
The goal is to eliminate the extra whitespace and align the 2nd level menu items to the right for proper positioning.