title: CSS Navigation bar changes size
body: <p>So I want my navigation bar to be the same size as the content box. However when on a different display the navigation size alters and gets distorted. I tried everything to make it stay the same size and I can't </p>
  
  <p>Html Coding -</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>body {
    background-color: rgb(229, 178, 146);
  }
  
  ul.navigation {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid;
    background-color: #333;
    width: 80%;
  }
  
  li a {
    display: block;
    color: white;
    text-align: center;
    padding: 20px 103.8px;
    text-decoration: none;
    float: left;
  }
  
  li a:hover {
    background-color: #FFF;
    color: #000;
  }
  
  .active {
    background-color: #000;
  }
  
  div.content {
    background-color: #FFF;
    width: 80%;
    height: 100%;
    margin: -22;
  }
  
  div.footer {
    background-color: #333;
    text-align: center;
    overflow: hidden;
    color: white;
    border: solid;
    width: 100%;
    padding: 0%;
    margin auto;
  }
  
  hr {
    border: 1px solid;
    border-color: #FFF
  }
  
  h1 {
    text-align: center;
    color: grey;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTPYE HTML&gt;
  &lt;html&gt;
  
  &lt;head&gt;
    &lt;title&gt;Shahed's Portfolio&lt;/title&gt;
    &lt;link rel="stylesheet" type="text/css" href="css/site.css" /&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;hr/&gt;
    &lt;h1&gt;Shahed Miah's Portfolio&lt;/h1&gt;
    &lt;hr/&gt;
    &lt;center&gt;
      &lt;ul class="navigation"&gt;
        &lt;li&gt;&lt;a class="active" href="home.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="about.html"&gt;About&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="projects.html"&gt;Projects&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  
      &lt;div class="content"&gt;
        &lt;h1&gt;Home&lt;/h1&gt;
        &lt;p&gt;What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make
          a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages,
          and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt;
      &lt;/div&gt;
    &lt;/center&gt;&lt;br/&gt;
  
    &lt;div class="footer"&gt;
      &lt;p&gt;Copyright &amp;copy;Shahed Miah&lt;/p&gt;
    &lt;/div&gt;
  
  
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>