I just started learning HTML and I'm struggling with some whitespace issues on my navigation bar. Can anyone help me figure out what's causing it?
div.nav {
background-color: black;
color: white;
font-size: 20px;
font-weight: bold;
position: fixed;
width: 100%;
text-align: center;
}
ul {
}
li {
display: inline-block;
list-style: none;
}
li a {
padding: 15px;
color: white;
}
<div class="nav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="watisdb.html">Wat is D&B</a></li>
<li><a href="dbnederland.html">D&B in Nederland</a></li>
</ul>
</div>
Just added some simple HTML code for clarification.