ButwhenIputitonasmallerscreenitlookslikethis:
HTMLcode:
<!DOCTYPE><html><head><linkrel="stylesheet" href="_css/estilo.css">
<meta charset="UTF-8">
<title>--</title>
</head>
<body>
<header>
<p id="letreiro">MarceloSantos.com</p>
<figure id="logo">
<img src="_img/logo.png" alt="Um programador em seu PC">
</figure>
<nav id="menu">
<ul>
<li><a href="#inicio">ÍNICIO</a></li>
<li><a href="#portfolio">PORTFÓLIO</a></li>
<li><a href="#redes-sociais">REDES SOCIAIS</a></li>
<li><a href="#contato">CONTATO</a></li>
</ul>
</nav>
</header>
<footer>
</footer>
</body>
</html>
CSS Code:
body {
}
#letreiro {
font-size: 50px;
font-family: courier, Charcoal, sans-serif;
text-align: center;
background-color: #2F4F4F;
color: #BEBEBE;
padding: 30px;
}
#menu ul {
margin-left: 150px;
}
#menu ul li {
font-size: 20px;
font-weight: bold;
color: #696969;
font-family: impact;
vertical-align: center;
margin-left: 80;
margin-right: 80;
display: inline-block;
}
#menu a {
text-decoration: none;
color: #696969;
}
#logo {
position: absolute;
left: 0;
top: 0;
}