3
I am trying to leave the options of a menu that I have distributed according to the total size of the menu, I have been trying some possibilities, including in a post right here, but unsuccessfully.
The site I have as an example is this: Site Example
My code is 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>
The 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 read, but could not, unfortunately the site is not yet on the air, but what I have locally can be seen by this image:
Hello @Renan, this site is an image, a static layout that was passed to me by the designer.
– adventistapr
do you want it to stay that way? https://jsfiddle.net/0k51c1nt/6/embedded/result/
– Samir Braga
Hello @Samirbraga, thanks for the suggestion and tip, helped me understand the problem.
– adventistapr