I'm trying to leave the options of a menu that I have distributed according to the total size of the menu, I've been trying some possibilities, including in a post right here, but without success.
The example site I have is: Site Example
My code looks like this:
<div class="col-md-8">
<!-- NAVEGAÇÃO PRINCIPAL -->
<div class="flexnav-menu-button" id="flexnav-menu-button">Menu</div>
<nav>
<ul class="nav nav-pills flexnav" id="flexnav" data-breakpoint="800" name="flexnav">
<li><a href="index.php">INÍCIO</a></li>
<li><a href="missao.php">MISSÃO E VISÃO</a></li>
<li><a href="equipe.php">QUEM SOMOS </a></li>
<li><a href="treinamentos.php">TREINAMENTOS</a></li>
<li><a href="eventos.php">EVENTOS</a></li>
<li><a href="contato.php">CONTATOS</a></li>
</ul>
</nav>
<!-- FIM NAVEGAÇÃO -->
</div>
</div>
O css
:
.nav { margin-bottom: 0; padding-left: 0; list-style: none; } .nav > li { position: relative; display: block; display:table-cell; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 4px; } .nav-pills > li + li { margin-left: 2px; }
One of my attempts was to give display: table;
to ul and display:table-cell;
to li, but I could not, unfortunately the site is not yet in the air, but what I have locally can be seen by this image: