I am trying to practise building my own ecommerce web page but already having problems with the header. I would like the menu navigation to stretch across the entire page. When i just have the header title, it is fine but as soon as i add the horizontal menu, it doesn’t stretch across the page. My HTML and CSS is very basic so far. What have i done wrong or what do i need to add to make the header stretch across 100%?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="Jaysee.css">
<title>JAYSEE</title>
</head>
<body>
<header class="header">
<h1 class="header_title">JAYSEE</h1>
<hr>
<div class="nav">
<ul>
<li class="shop"><a href="#">SHOP</a></li>
<li class="about"><a href="#">ABOUT</a></li>
<li class="contact"><a href="#">CONTACT</a></li>
</ul>
</div>
<hr>
</header>
</body>
</html>
.header {
position: fixed;
}
.header_title {
text-align: center;
}
li {
display: inline;
}
#nav {
width: 100%;
}