Meu HTML:
<!DOCTYPE html>
<html lang="pt=br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Barbearia Alura</title>
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1><img src="images/logo.png" alt="" class="logo"></h1>
<div class="caixa">
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="#">Produtos</a></li>
<li><a href="#">Contatos</a></li>
</ul>
</nav>
</div>
</header>
</body>
</html>
Meu CSS:
header {
background: #bbb;
}
nav {
position: absolute;
top: 110px;
right: 0;
}
nav li {
display: inline;
margin-left: 15px;
}
nav a {
text-transform: uppercase;
color: black;
font-weight: bold;
font-size: 22px;
text-decoration: none;
}
.caixa {
position: relative;
width: 940px;
}
Resultado: