Ok, In my website I have a second navbar to put categories. I have 9 categories and 2 has only one line, so the hover just hover the line and not the block. It's possible to do hover on the block where I have just one line? This is the index code:
<nav id="menu-h">
<ul>
<li><a href="catalogo.php">GoodCaring</a></li>
<li><a href="catalogo.php">Saúde e Higiene Sénior</a></li>
<li><a href="catalogo.php">Logística e <br>Indústria</a></li>
<li><a href="catalogo.php">Soluções de embalagem</a></li>
<li><a href="catalogo.php">Agricultura</a></li>
<li><a href="catalogo.php">Gestão de <br>Resíduos</a></li>
<li><a href="catalogo.php">Artigos de <br>Celulose</a></li>
<li><a href="catalogo.php">Artigos de Higiene e Limpeza</a></li>
<li><a href="catalogo.php">Embalagens Biodegradáveis</a></li>
</ul>
</nav>
#menu-h ul {
max-width: 1600px;
min-height: 57px;
list-style: none;
padding: 0;
margin: auto;
background-color: rgb(204, 204, 204);
}
#menu-h ul li{
display: inline;
}
#menu-h ul li a{
border-radius: 10px;
display: inline-block;
/*line-height: center;*/
vertical-align: middle;
transition: background .5s;
color: #483e3e;
text-align: center;
padding: 5px;
text-decoration: none;
font-size: 17px;
width: 10.80%;
}
#menu-h ul li a:hover {
background-color: rgb(166, 232, 57);
border-radius: 10px;
color: white;
border-bottom-style: inset;
border-bottom-width: 6px;
border-bottom-color: rgb(19, 83, 57);
text-align: center;
}
Like you see in the print, I want the hover on "Agricultura" was the same of "Soluções de embalagem".

I try to do a <br>, but the text won't center anymore. I try the Display block but the navbar put in vertical.
I would do it using grid, as follows. Note that as there are 9 cells, this is not really responsive as it is, but I guess it was out of the scope of this question.