-3
But when I put it on a smaller screen it looks like this:
HTML code:
<!DOCTYPE>
<html>
<head>
<link rel="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;
}
Read these two articles https://tableless.com.br/introducao-sobre-media-queries/ and here https://developer.mozilla.org/en-US/docs/Web/Guide/CSS_Media_queries
– hugocsl
The page is resizing. It seems that the only problem is the font size of the text at the top, which does not track resizing.
– Sam