title: Navbar wont center
body: <p>it's my first year on coding and i'm doing this for a school Project. We have to do a responsive site and i'm already facing a problem when trying to add a navbar to my site. Whenever i add it, it just goes too much to the left and wont go in the middle. I tried searching google for help but none of them worked so thought i'd register here to ask. Thanks in advance!</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: white none; 
    color: black;
    /* jätetään ylämarginaalia navigointipalkin tilan verran */
    margin-top: 0em;
    /* jätetään vasempaan laitaan marginaalia saman verran kuin
       laitaan tuleva linkkialue vie */
    margin-left: 24.5%;
    padding: 0.5em;
    margin-right: 24.5%;
    margin-top: 10
  }
  body {
      background-image: url("8.jpg");
  }
  
  #logo {
      margin-left: 0px;
      margin-top: -180px;
  }
  
  ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
      overflow: hidden;
      background-color: Green;
  }
  
  li {
      float: left;
  }
  
  li a {
      display: block;
      color: white;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
  }
  
  li a:hover {
      background-color: #89F52B;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul&gt;
    &lt;li&gt;&lt;a href="#home"&gt;Etusivu&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#games"&gt;Pelit&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#news"&gt;Palaute&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#contact"&gt;Yhteystiedot&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="lomake.html"&gt;Lomake&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;div id="logo"&gt;
  &lt;img src=""/&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>