This is my code so far. The issue is that the top bar is too thin, it's meant to have 20px padding around the top links but in total the top bar is only 40px high, so it seems it isn't taking into account the height of the links themselves (i.e the bar should be taller). How do I fix this?
body {
padding: 0;
margin: 0;
background-color: white;
font-family: sans-serif;
}
header {
display: block;
padding: 20px;
background-color: #F9F9F9;
}
#headerbar {
position: relative;
}
.container {
width: 80%;
max-width: 1000px;
margin: 0 auto;
}
.logo {
position: absolute;
left: 0;
}
.post {
position: absolute;
right: 0;
}
<header>
<div id="headerbar" class="container">
<a href="#" class="logo">Logo</a>
<a href="#" class="post">Post</a>
</div>
</header>