Dropdown menu does not overlap background div

0
The problem is as follows, I have a header with a background, I have a menu bar in that header, this menu bar has a dropdown item, but when I hit the dropdown it appears underneath but is cut off when the background arrives end, not appearing at all, I tried to use the position and z-index properties in several classes kk in the menu, in the menu parent, but I did not get results, follow the codes with the structure I'm using, I removed the contents of the divs so I left the structure to understand how it is:

<div class="**fundo-header** col-md-12">
    <div class="container">
        <div class="col-md-12 retira-padding conteudo-header">
        <div class="col-md-4 retira-padding">
        </div>
        <div class="col-md-8 retira-padding">
            <div class="col-md-8 retira-padding conteudo-header-2">
            </div>
            <div class="col-md-4 retira-padding icones-redes-sociais">
            </div>
            <div class="col-md-12 retira-padding menu-header">
                <nav  class="navbar navbar-default">            
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
                            <span class="sr-only"></span> 
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span> 
                        </button>
                    </div>  
                    <div class="collapse navbar-collapse" id="navbar">
                        <ul class="nav navbar-nav">
                            <li><a href="">Home</a></li>
                            <li class="**dropdown**">
                                <a href="" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Estoques<span class="caret"></span></a>
                                <ul class="dropdown-menu">
                                    <li><a href="" class="tamanho-drop">Caminhões</a></li>
                                    <li><a href="" class="tamanho-drop">Carretas</a></li>
                                    <li><a href="" class="tamanho-drop">Carros</a></li>
                                    <li><a href="" class="tamanho-drop">Ônibus</a></li>
                                </ul>
                            </li>   
                            <li><a href="">empresas</a></li>
                            <li class="dropdown">
                                <a href="" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Financiamentos<span class="caret"></span></a>
                                <ul class="dropdown-menu">
                                    <li><a href="" class="tamanho-drop">Consórcios</a></li>
                                </ul>
                            </li>   
                            <li><a href="">Consultas</a></li>
                            <li><a href="">Contato</a></li> 
                        </ul>
                    </div>               
                </nav>
            </div>
        </div>
    </div>
</div>

css

 .fundo-header{
background-color: #ccd2d5;
z-index: 1;
position: relative;
}

.menu-header{
position: absolute;
z-index:99;
top:100px;
}
    
asked by anonymous 28.05.2018 / 19:50

0 answers