I am creating a website for fun and I ran into an issue. I would like to display all the links as a continuous line of buttons, but the two buttons "about us" and "contact us" for some reason are still apart even though the other links are being positioned nicely. I know this is probably a very simple fix, but I can't seem to figure it out for some reason.
Here is my HTML code:
header nav .headerbutton {
text-decoration: none;
color: white;
background: black;
font-family: sans-serif;
font-weight: 900;
padding: 10px;
transition: .2s;
margin-right: -3.4px;
}
header nav .headerbutton:hover {
background: red;
}
<header>
<nav>
<a href="#" class="headerbutton" id="headerbutton-1">Home</a>
<a href="#" class="headerbutton" id="headerbutton-2">Playing Cards</a>
<a href="#" class="headerbutton" id="headerbutton-3">Top 10s</a>
<a href="#" class="headerbutton" id="headerbutton-4">About Us</a>
<a href="#" class="headerbutton" id="headerbutton-5">Contact Us</a>
</nav>
</header>