title: Why is my navigation bar not covering the whole screen?
body: <p>The following is the html and css code for the navigation bar.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  
  h2,
  h3,
  a {
   color: #727475;
  }
  
  a {
   text-decoration: none;
  }
  
  
  
  .logo {
   margin: 0;
   font-size: 1.45em;
  }
  
  .main-nav {
   margin-top: 5px;
  
  }
  .logo a,
  .main-nav a {
   padding: 10px 15px;
   text-transform: uppercase;
   text-align: center;
   display: block;
  }
  
  .main-nav a {
   color: #456279;
   font-size: .99em;
  }
  
  .main-nav a:hover {
   color: #3b556e;
  }
  
  
  
  .header {
   padding-top: .5em;
   padding-bottom: .5em;
   border: 1px solid #929292;
   background-color: #252323;
   -webkit-box-shadow: 0px 0px 14px 0px rgba(0,0,0,0.75);
   -moz-box-shadow: 0px 0px 14px 0px rgba(0,0,0,0.75);
   box-shadow: 0px 0px 14px 0px rgba(0,0,0,0.75);
   -webkit-border-radius: 5px;
   -moz-border-radius: 5px;
   border-radius: 5px;
  }
  
  
  
  
  
  
  
  @media (min-width: 769px) {
   .header,
   .main-nav {
    display: flex;
   }
   .header {
    flex-direction: column;
    align-items: center;
       /* .header{
    width: 80%;
    margin: 0 auto;
    max-width: 1150px;
   } */
   }
  
  }
  
  @media (min-width: 1025px) {
   .header {
    flex-direction: row;
    justify-content: space-between;
   }
  
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;header class="header"&gt;
      &lt;h1 class="logo"&gt;&lt;a href="#"&gt;Dairy Farm Dashboard&lt;/a&gt;&lt;/h1&gt;
        &lt;ul class="main-nav"&gt;
            
            &lt;li&gt;
                &lt;select name="" id="" class="form form-control abcdefgh" [(ngModel)]="selecteddate"  (change)="mychange()"&gt;
                    &lt;option value="" disabled&gt;Date&lt;/option&gt;
                    &lt;option value="{{date}}" *ngFor="let date of date_new"&gt;{{date}}&lt;/option&gt;
                   
                  &lt;/select&gt;
            &lt;/li&gt;
            &lt;li&gt;
                &lt;select name="" id="" class="form form-control abcdefgh" [(ngModel)]="selectcity"  (change)="citychange()"&gt;
                    &lt;option value="" disabled&gt;Country&lt;/option&gt;
                    &lt;option value="{{city.country}}" *ngFor="let city of city"&gt;{{city.city}}&lt;/option&gt;
                    
                   
                  &lt;/select&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;a (click)="logout()"&gt;Logout&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/header&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The output that I am getting is somewhat like this.
  <a href="https://i.stack.imgur.com/fHnv9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fHnv9.png" alt="The output image."></a></p>
  
  <p>As it is clear from the picture,my navigation bar is not covering the whole screen.However even this would have been acceptable to me . The problem is that when I try to increase the browser size by pressing 'CTRL+' ,the navigation bar is not able to cover up the content below it.The following is the screenshot on expanded screens.
  <a href="https://i.stack.imgur.com/2wItj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2wItj.png" alt="View on enlarged screens."></a></p>
  
  <p>What am I doing wrong here?How do I make the navigation bar cover the entire screen.</p>