I'm trying to build an orange nav bar that uses 100% of the viewport width and doesn't leave any blank space at the top. Obviously, I'm doing something very wrong because my nav currently has blank space on the left, right and at the top.
I'm somewhat new to CSS. Could a kind soul please point me to the right direction?
Thanks.
body {
background-color: black;
padding: 0;
margin: 0;
}
a {
text-decoration: none;
}
nav {
width: 100%;
height: 100%;
background-color: orange;
top: 0;
left: 0;
margin: 0;
padding: 0;
}
h1 {
text-transform: uppercase;
text-align: center;
color: white;
}
nav ul {
list-style-type: none;
}
nav li a {
display: inline-block;
color: white;
}
<nav>
<ul>
<li><a href="#">Sign Up</a></li>
<li><a href="#">Login</a></li>
</ul>
</nav>
<br>
<h1>I Cook Rice for:</h1>
<aside></aside>
<div id="maincontent"></div>