I'm creating two horizontal menus on the same page with different settings and so I used a class in each of them.
I can not get one of these menus to have a one-color box in there
What I did was to give a padding to each of the menu items so that when you move the mouse it would be that color.
I gave a yellow color to show the default state and a yellow one, lighter, when the mouse is passed.
In short: The problem is that by moving the mouse the light yellow color does not occupy all the yellow that is in premanence - link
My current code:
ul.nav{
font-family: globerthin, Verdana, Arial, Geneva, sans-serif;
list-style-type: none;
margin-top: 50px;
}
ul li.nav{
display: inline;
background-color: yellow;
color: black;
margin-left: 20px;
padding-left: 25px;
padding-top: 25px;
padding-right: 25px;
padding-bottom: 25px;
font-size: 125%;
font-weight: bold;
}
.nav a:link{
color: black;
text-decoration: none;
}
.nav a:visited {
color: black;
text-decoration: underline;
}
.nav a:hover{
background-color: #faf6eb;
text-decoration: none;
}
.nav a:active{
color: black;
text-decoration: underline;
}
<ul class="nav">
<li class="nav"><a href="index.html#equipamentos" title="Navegar para Eqipamentos">EQUIPAMENTOS</a></li>
<li class="nav"><a href="index.html#actividades" title="Navegar para actividades">ACTIVIDADES</a></li>
<li class="nav"><a href="index.html#duvidas" title="Navegar para dúvidas técnicas">DÚVIDAS TÉCNICAS</a></li>
<li class="nav"><a href="index.html#reparar" title="Navegar para ás reparações de equipamentos">REPARAÇÃO DE EQUIPAMENTO</a></li>
<li class="nav"><a href="index.html#usados" title"Navegar para usados">USADOS</a></li>
<li class="nav"><a href="index.html#blogue" title="Navegar para ao blogue">BLOGUE</a></li>