title: How to center h1 in div
body: <p>How do i center a h1 in a div.This is the picture of my project and i want to center "about me" with hover effect to center it with header, to be right beneath that green line. </p>
  
  <p><a href="https://i.stack.imgur.com/vpTN7.jpg" rel="nofollow noreferrer">this</a> </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-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
   &lt;link href="https://fonts.googleapis.com/css?family=Titillium+Web" rel="stylesheet"&gt;
   &lt;link href="https://fonts.googleapis.com/css?family=Satisfy" rel="stylesheet"&gt;
   &lt;link rel="stylesheet" type="text/css" href="css/main.css"&gt;
   &lt;title&gt;My Portfolio&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
   &lt;div id="header"&gt;
    &lt;header&gt;Mr. Philip Braun&lt;/header&gt;
    &lt;img src="img/greeny.png"&gt;
    &lt;h1 class="hvr-float-shadow"&gt;About  Me&lt;/h1&gt;
    &lt;br&gt;
    &lt;p&gt; I'm a funny and classy guy from London&lt;br&gt;and i dare you to click "About Me"&lt;br&gt;because if you don't, you are missing your chance of knowing about a guy&lt;br&gt;who works hard for what he is made and of course doing it&lt;br&gt; &lt;b&gt;perfectly&lt;b&gt;&lt;br&gt; &lt;b&gt;with finesse&lt;/b&gt; &lt;/p&gt;
   &lt;/div&gt;
  
    &lt;br&gt;&lt;br&gt;
  
   &lt;img class="braun" src="img/braun3.jpg"&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>