Trying to add content to my body to continue the flow of my site, but anything placed in the body is appearing in the top-left of the header.
Any ideas for why this may be happening?
Stack overflow wants me to write more content. Here's me writing more content.
<!DOCTYPE html>
<html>
<head>
<link href="flex.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@500">
</head>
<header>
<div id="header">
<h1 class="title">brookfield corp</h1>
<nav class="top-nav">
<ul>
<a href="#recent"><li>recent</li></a>
<a href="#samples"><li>samples</li></a>
</ul>
</nav>
</div>
</header>
<body>
<h2>recent</h2>
</body>
</html>
html {
box-sizing: border-box;
}
.title {
font-family: 'Frank Ruhl Libre', serif;
text-align: center;
font-size: 4em;
background-color: hsla(140, 50%, 30%, .9);
color:cornsilk;
padding: 30px 0px 30px 0px;
margin: 0 auto;
height: 100px;
width: 100%;
top: 0px;
left: 0px;
position: absolute;
}
nav {
font-family: 'Frank Ruhl Libre', serif;
float: right;
text-decoration: none;
}
li {
color: black;
list-style: none;
display: inline;
opacity: .7;
text-decoration: none;
}