0
*{margin: 0; padding: 0;}
nav{ width: 100%; height: 100px; background:gy;margin: 0 auto;text-align: center;background: rgba(0,0,0, 0.6);}
nav ul{list-style: none; }
nav ul li {display: inline;padding: 5px; padding-top: 50px;}
nav ul li a {text-decoration: none; font-size: 20px; color: white;margin-top: 50px}
nav ul li:hover {background: rgb(18, 155, 219); transition: 1s linear}
body{background: url(https://i.ytimg.com/vi/0517Im379dI/maxresdefault.jpg);
background-repeat: no-repeat; background-size: 100%;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="estilo.css">
</head>
<body>
<nav>
<ul>
<li><a href="#">Inicio<a></li>
<li><a href="#">Contatos<a></li>
<li><a href="#">produtos<a></li>
<li><a href="#">Portifólio<a></li>
<li><a href="#">Sobre Nós<a></li>
</ul>
</nav>
</body>
</html>
Your
padding-top
in LI did not work because you putdisplay:inline
in it. If you want to line up with padding like you tried to just putnav ul li {display: inline-block;.....
woe to youpadding-top
will begin to "take effect".– hugocsl
Thank you so much for your help
– Rebeca Aguirrer
Dispose, and even though you have already solved the problem there, take a half hour to read the answer I marked as duplicate. It will already help you solve half the alignment problems you will have in the future! []s
– hugocsl
How do I close the question?
– Rebeca Aguirrer
Don’t worry about it, let her be now clickbait for organic rss searches. But if you really want to delete have a link to
remover
in your question, just click on it...– hugocsl