I'm setting up an E-commerce where the main menu contains all major product categories. When the Admin registers many categories the menu gets broken into two lines.
The customer requested that you keep all categories on one line and, if you exceed the total line size, create a slip menu (such as a carrousel).
I could not find any examples working from a menu built in this way, I tried to use JQuery OWL and it continued to crash in the same way.
Here is an example of 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 of any way to create this slick menu?