When I shrink the browser, the header and navigation bar does not extend till the end of the browser. It looks like this when I shrink the browser. I want the header and the navigation bar to extend till the end of the browser.

When the browser is stretched, it’s alright though! 
Here’s my html code :
<body>
<div id="header">
Some text
</div>
<ul id="nav">
<li><a href="index.html">Home</a></li>
<li><a href="work.html">Work</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</body>
Here’s the CSS for it:
/* CSS Document */
body {
background:red;
}
#header{
margin:0;
background: white;
height:90px;
width:100%;
}
#nav {
/* margin: 0px auto;*/
padding-left: 100px;
background: black;
height:54px;
}
#nav li {
float: left;
}
#nav li a {
color: lime;
font-size: 20px;
font-weight: bold;
line-height: 54px;
margin-right: 94px;
text-decoration: none;
}
Would really appreciate it if you could tell me what I’m doing wrong. I’m using Eric Meyer’s reset too.
Try this
here you can specify the
min-width:--;