7
I am maintaining a site that was done with Foundation, and I really have no knowledge of this framework, because I only work with Bootsrap.
I’ve searched the Foundation documentation but I can’t find anything to solve my problem.
Problem
On the site has a <ul class="nav-bar">
and within it their respective li
.
In the browser is cool, but when I go to a mobile screen or tablet or any other mobile device, this menu is to the right.
Note:
Changing the size of the browser window on a desktop computer to a very small size also allows you to replicate the problem.
Code:
<ul class="nav-bar">
<li><a href="index.php">Home</a></li>
<li><a href="clinica.php">Clínica</a></li>
<li><a href="hospitais.php">Hospitais</a></li>
<li><a href="equipe.php">Equipe</a></li>
<li><a href="dicas_links.php"> Links</a></li>
<li><a href="localizacao.php">Localização</a></li>
<li><a href="contato.php">Contato</a></li>
</ul>
<ul class="nav-bar pink_menu">
<li class="has-flyout"><a href="home.php">Cirurgia Plástica</a>
<ul class="flyout">
<li><a href="ce_mamas.php">Mamas</a></li>
<li><a href="ce_ccc.php">Cirurgias do Contorno Corporal</a></li>
<li><a href="ce_rf.php">Cirurgias do Rejuvenescimento Facial</a></li>
<li><a href="ce_outras.php">Cirurgia de outras partes da face</a></li>
<li><a href="ce_lc.php">Cirurgias de Lifting Corporal (Cirurgias plásticas do corpo)</a></li>
<li><a href="ce_cc.php">Cirurgias do contorno corporal após grandes perdas de peso</a></li>
<li><a href="ce_homem.php">Cirurgias masculinas</a></li>
<li><a href="ce_reparadoras.php">Cirurgias Reparadoras</a></li>
<li><a href="gestante.php">Gestantes</a></li>
<li><a href="hidrolipoaspiracao.php"> Hidrolipoaspiração</a></li>
</ul>
</li>
<li class="has-flyout"><a href="home.php">Medicina estética </a>
<ul class="flyout">
<li><a href="proc_botox.php">Toxina Botulínica</a></li>
<li><a href="proc_estetico.php">Preenchimento Facial</a></li>
<li><a href="proc_peeling.php">Peelings Químicos</a></li>
<li><a href="proc_dermo.php">Dermoabrasão</a></li>
<li><a href="laser.php">Laser C02</a></li>
<li><a href="skin.php">Skin Booster</a></li>
</ul>
</li>
<li class="has-flyout"><a href="home.php">Procedimentos estéticos</a>
<ul class="flyout">
<li><a href="peel_dmt.php">Peeling de Diamante</a></li>
<li><a href="peel_cri.php">Peeling de Cristal</a></li>
<li><a href="limp_pele.php">Limpeza de Pele</a></li>
<li><a href="depi_laser.php">Depilação à laser </a></li>
<li><a href="dren_linf.php">Drenagem Linfática Manual</a></li>
<li><a href="estrias.php">Tratamento de Estrias</a></li>
<li><a href="vasos.php">Escleroterapia de vasos</a></li>
<li><a href="colageno.php">Máscara de Colágeno</a></li>
</ul>
</li>
</ul>
Question
What is causing this menu behavior and what solution to keep it in the location seen in desktop browsers?
So I guess I didn’t express myself well I don’t need the menu to be horizontal, I need it to be vertical, but not to be right, I need it to be centered
– Daniel Swater
@Danielswater I updated the answer. It worked on the example I put together, but it’s hard to be sure it’ll look equally good on the real page. Try and, if you still have problems, update your question with additional details.
– mgibsonbr