I'm having trouble adjusting the width of the topnav
background color to fill the entire page without any gaps. I hope that makes sense. Let me know if you need more information.
Page displaying gap:
Here is the HTML and CSS code:
body {background-color: burlywood;}
#heading1{position: relative; text-align: center; top: 50px;}
#topnav{background-color: chocolate;
font-size: 30px;
text-align: center;
overflow: hidden;
position: relative;
word-spacing: 70px;
width: 100%; height: 100%;
bottom: 80px;
}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="main.css">
<title></title>
</head>
<body>
<h1 id="heading1">Hello World</h1>
<div id="topnav">
<nav>
<a href="#"> About</a>
<a href="#"> sales</a>
<a href="#"> cart</a>
<a href="#"> home</a>
</ul>
</nav>
</div>
</body>
</html>