1
I’m setting up an E-commerce where the main menu contains all the main product categories. When Admin registers many categories the menu is broken into two lines.
The customer asked you to keep all categories in one line and, if you exceed the full line size, create a sliding menu (such as a carousel).
I couldn’t find any example working from a menu built this way, I tried using Jquery OWL and kept breaking the same way.
Follow an example from the menu:
.cabecalho{
width: 100%;
background-color: #a01127;
font-size: 3rem;
color: white;
text-align: center;
padding: .5rem 0;
}
.menu{
width: 100%;
background-color: #a01127;
}
.menu ul{
list-style: none;
margin: 0;
}
.menu li{
display: inline;
padding: 0 .7rem;
}
.menu a{
color: white;
text-decoration: none;
font-size: 1.2rem;
}
<div>
<div class="cabecalho"><span>Cabeçalho</span></div>
<div class="menu">
<ul>
<li><a href="#">Acessórios</a></li>
<li><a href="#">Automação</a></li>
<li><a href="#">Cabos & Conexões </a></li>
<li><a href="#">Cartuchos & Toners</a></li>
<li><a href="#">Computador</a></li>
<li><a href="#">Energia </a></li>
<li><a href="#">Game</a></li>
<li><a href="#">Hardware</a></li>
<li><a href="#">Impressoras</a></li>
<li><a href="#">Monitor</a></li>
<li><a href="#">Monitoramento</a></li>
<li><a href="#">Notebook</a></li>
<li><a href="#">Periféricos</a></li>
<li><a href="#">Rede</a></li>
</ul>
</div>
</div>
Does anyone know any way to create this sliding menu?
It has to be with "arrows to one side and to the other" or it can be like a normal scroll bar even?
– hugocsl
It would have to be with the arrows, the scroll bar will break the layout and get ugly
– Pilati