I’m using WordPress with a Bootstrap theme and there’s a problem with the responsive menu that I need some help with.
The problem is that the sub menus are floating over the menu instead of pushing it down. I guess it’s because the sub menu is floating (float: left) but whatever I try won’t solve the problem.
html:
<div class="navbar-collapse navbar-header-collapse in">
<ul class="nav navbar-nav navbar-right">
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-90">
<a title="Foo" href="#" data-toggle="dropdown" class="dropdown-toggle">Foo
<span class="caret"></span></a>
<ul role="menu" class=" dropdown-menu">
// more li elements
</ul>
</li>
</ul>
</div>
The CSS comes from Bootstrap which will be pretty space consuming if I put it in here.
If you need more code please comment and try to be specific.
Thanks in advance!
Thats because layout missing. Try to add
overflow:hidden
to the parent of the floating elementsTry some of this rules. Use only one of them