Well, I have a site and it's happening something that I just can't fix. I have a code like this:
aside {
font-size: 150%;
font-family: fantasy;
font-variant: small-caps;
line-height: 2em;
background: rgba(187,219,136,0.75);
width: 90%;
height: 50px;
text-align: center;
}
aside {
margin: auto;
margin-top: 20px;
}
aside li {
float: left;
padding: 0 2%;
font-size: 100%;
}
<aside>
<ul>
<li id="matematica"><a href="matematica.html" title="Ver resumos de Matemática">Matemática</a></li>
<li><a href="geografia.html" title="Ver resumos de Geografia">Geografia</a></li>
<li><a href="fisica.html" title="Ver resumos de Física">Física</a></li>
<li><a href="historia.html" title="Ver resumos de História">História</a></li>
<li><a href="portugues.html" title="Ver resumos de Português">Português</a></li>
<li id="quimica"><a href="quimica.html" title="Ver resumos de Química">Química</a></li>
</ul>
</aside>
So, the problem is that I want to centralize the li elements inside the ul, and I can't use text align because li is not text! Can anyone help me?