3
I have this vertical menu:
<!-- Coluna2 -->
<div id="d2" align="right">
<nav id="menu">
<ul id="menu-nav">
<li><a href="cEmpresa.html">Hotel</a></li>
<li><a href="#">Clientes</a></li>
<li><a href="cFuncionarios.html">Funcionários</a</li>
<li><a href="cQuartos.html">Quartos</a></li>
<li><a href="#">Produtos</a></li>
<li><a href="#">Serviços</a></li>
<li><a href="#">Reservas</a></li>
<li><a href="#">Fechamento</a></li>
</ul>
</nav>
</div>
Your CSS:
/* COLUNA2*/
#d2
{
border-style: solid;
border-color: rgba(64, 118, 182, .3);
margin-top: -10px;
height: 110%;
background-color: rgba(64, 118, 182, .5);
display: block;
float: right;
width: 20%;
}
How do I put sub-menus on it? Example, I want to split these items from it into just two categories, Administração
and Sistema
and separate these items between these two new categories. Example:
Administração
Funcionários
Hotel
Relatórios
Sistema
Clientes
Produtos
Reservas
How do I do this in the simplest way? I wanted to display only the two categories (administration and System) from there by clicking on it or giving one hover
, it display its sub categories..
Take a look here: http://www.linhadecodigo.com.br/artigo/3464/criando-um-menu-vertical-dropdown-com-css-e-html.aspx I think that’s what you’re talking about
– Fábio Ferreira
Long ago I made this menu : http://jsfiddle.net/lautert/7t2Dq/6/
– Guilherme Lautert
I will publish the answer that I found simpler and more appropriate, without using Javascript etc, I had just forgotten how to apply transformations to another object using CSS, now I know it is with the fate of higher >
– Leonardo