I'm learning HTML through a Caelum workbook, the problem is that for some reason the page stayed like this and not with the list elements one next to the other. I used position for that.
HTML code:
header {
position: relative;
}
.menu-opcoes ul li {
display: inline;
margin-left: 20px;
font-size: 15px;
position: absolute;
bottom: 0;
right: 0;
}
.sacola {
background: url(img/sacola.png) no-repeat top right;
font-size: 14px;
padding-right: 35px;
padding-top: 8px;
text-align: right;
width: 140px;
position: absolute;
top: 0;
right: 0;
}
.menu-opcoes a {
color: #003366;
}
.container {
margin: 0 auto;
width: 940px;
}
body {
color: #333333;
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
<!DOCTYPE>
<html>
<head>
<meta charset="UTF-8">
<title>Mirrior Fashion</title>
</head>
<body>
<header class="container">
<h1><img src="img/logo.png" alt="Mirror Fashion"></h1>
<p class="sacola">
Nenhum item na sacola de compras.
</p>
<nav class="menu-opcoes">
<ul>
<li><a href="#">Sua Conta</a></li>
<li><a href="#">Lista de Desejos</a></li>
<li><a href="#">Cartão Fidelidade</a></li>
<li><a href="sobre.html">Sobre</a></li>
<li><a href="#">Ajuda</a></li>
</ul>
</nav>
</header>
</body>
</html>
I'm sorry if the code is written in a hard-to-read way.