Trouble with Navtab
<p>I´m learning HTML and CSS from the freecodecamp. With all the Bootstrap code I'm a bit confused. </p>

<p>Here is my code:</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>h1 {
  text-align: center;
  letter-spacing: 5px;
  color: coral;
  font-family: verdana;
}
ul {                
  height: 20%;
  background-color: darkgrey;
  list-style-type: none;
  display: solid;                                              
}
li {   
  display: inline-block;
  padding: 0% 5% 0% 5%;
  text-align:                    
}
#first {
  margin: 0% 0% 0% 30%;
}
li:hover {           
  background-color: bisque;
  text-decoration: none;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h1&gt; Test Website &lt;/h1&gt;
&lt;div class="container-fluid"&gt;
  &lt;div class="menu"&gt;
    &lt;div id="tope"&gt;&lt;/div&gt;
    &lt;ul id="navbar"&gt;                   
      &lt;li id="first"&gt;&lt;a href="www.a.com"&gt; Us &lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="www.b.com"&gt; Work &lt;/a&gt;&lt;/li&gt;
      &lt;li id="last"&gt;&lt;a href="www.c.com"&gt; Vids and photos &lt;/a&gt;&lt;/li&gt;   
    &lt;/ul&gt;    
  &lt;/div&gt;
&lt;/div&gt;</code></pre>
</div>
</div>
</p>

<p>Demo: <a href="http://codepen.io/cetaphil/pen/YWjpYR" rel="nofollow">CodePen</a>.</p>

<p>The problem that I am struggling on is that my navtab (actually, all the <code>&lt;li&gt;</code> elements) don't follow the main title <code>&lt;h1&gt;</code> element when I resize the screen.</p>

<p>I want to make some kind of grid system, where my <code>&lt;li&gt;</code> are centered in relation to the <code>&lt;h1&gt;</code>, but without Bootstrap. Is that possible? If so, how?</p>