I created a basic navigation bar using HTML, but there seems to be a slight gap between the top of the nav
and the top of the page.
Here is the HTML code:
<div id="nav">
<div id="menu">
<ul>
<li><a href="#">Home</a></li><li>
<a href="#">About</a></li><li>
<a href="#">Dowenload</a></li><li>
<a href="#">Contact</a></li>
</ul>
</div>
</div>
And here is the CSS code:
body{
margin:0px;
background-color:green;
}
#menu ul{
}
#menu ul li{
display: inline-block;
list-style-type: none;
font-size:20px;
padding:15px;
}
#menu ul li a{
text-decoration: none;
color:#ccc;
}
You can view a demo here.
Does anyone have any suggestions on how to resolve this issue?