I'm putting navbar
of Bootstrap on a website, but when I click the button to open the menu, the menu appears behind the banner you have on the site. I took the position:absolute
that it has in col-md-12
and it was on top (in the correct way), but I wanted to know if there is another alternative, since I think taking position
is not the right way to do it. p>
Print:
Mycode
<divclass="row-fluid bg-top">
<div class="col-md-2">
<img src="assets/images/logo.png" class="img-responsive" border="0">
</div>
<div class="col-md-3">
<div class="navbar-header navbar-default navbar-inverse">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#menu">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<nav role="navigation" class="navbar">
<div id="menu" class="collapse navbar-collapse">
<ul>
<li><a href="">a empresa</a></li>
<li><a href="">máquinas</a></li>
<li><a href="">insumos</a></li>
<li><a href="">cápsulas</a></li>
<li><a href="">soluções</a></li>
<li><a href="">contato</a></li>
</ul>
</div>
</nav>
</div>
<div class="col-md-3">
</div>
<div class="col-md-4 hidden-xs hidden-sm">
<div id="contatos">
<p>[email protected]</p>
<p>11 2356-6566 | 11 2356-6568 <img src="https://bmwkids.s3.amazonaws.com/app/uploads/2015/02/OrangePhone.png"style="width:8%"></p>
<div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="standard" data-action="like" data-width="100" data-show-faces="false" data-share="false"></div>
</div>
</div>
</div>