Good evening guys, I'm having a problem about letting my site be responsive. What happens is this ...
I have my menu, which contains 2 LI " ADD VALUE ," CREATE ROUTINE ". And I want to make them responsive, the NAV they are in, I was able to leave responsive by adding Position: relative; , but when I reduce browser resolution only the NAV remain responsive, my LI , do not redimension.
TheredbordersaretoillustratewhereCSSisaffecting.
I'vetriedPosition:relative;inULinLI,IalsotriedPosition:absolute;,butnothinghelped,myLIstilldonotresizewithbrowserresolution.
MyHTMLcodeisasfollows:
<navid="menu">
<ul>
<li><a href="salario.html">Adicionar Valor</a></li>
<li><a href="rotina.html">Criar Rotina</a></li>
</ul>
</nav>
My CSS code looks like this:
body{
background-color: #e6a017;
margin:0;
padding:0;
}
nav{
background-color: white;
top: -16px;
position: relative;
}
nav a{
text-decoration: none;
color: black;
font-family: Arial;
font-size: 12px;
font-weight: bolder;
}
nav a:hover{
color: white;
}
nav ul{
border: 8px solid red;
list-style: none;
text-transform: uppercase;
right: -980px;
position: relative;
display: block;
}
nav li{
display: inline-block;
padding: 10px;
margin-right: 10px;
}
nav li:hover{
background-color: #e6a017;
transition: 1s;
}
RESOLVED
I've changed the line of css "right: -980px;" from nav ul to text-align: right; strong>