I have a very simple HTML file with some styles given to it, but for some reason I can't change the width of the links inside of the div, I tried it with width, max-width, min width and with some different containers such as an unordered list, but no matter what, they stay the same size.
body {
width: 100%;
height: 100vh;
padding: 0px;
margin: 0px;
}
#navbar {
margin: 0px;
padding: 0px;
height: 10%;
text-align: center;
}
a:visited,
a:link {
color: #ffffff;
border: 2px solid black;
text-decoration: none;
}
a:hover {
color: #30cc00;
background-color: #003333;
<div id="navbar">
<a href="Seiten/Home.html">Home</a>
<a href="Seiten/Gedichte.html">Gedichte</a>
<a href="Seiten/Bücher.html">Bücher</a>
<a href="Seiten/Aktuelles.html">Aktuelles</a>
<a href="Seiten/Kontakt.html">Kontakt</a>
</div>