title: My div won't center HTML CSS
body: <p>My Code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.nav_bar {
   position: absolute;
   top: 0;
   width: 800px;
   height: 23px;
   display: inline-block;
   text-align: center;
   background-color: #0090bc;
   border-bottom-left-radius: 12px;
   border-bottom-right-radius: 12px;
   border: 2px solid #004D6F;
   -webkit-box-shadow: inset 2px 2px 0px rgba(255, 255, 255, 0.7), inset -2px -2px 0px rgba(0, 0, 0, 0.7);
   box-shadow: inset 2px 2px 0px rgba(255, 255, 255, 0.7), inset -2px -2px 0px rgba(0, 0, 0, 0.4);
   padding: 10px;
   font-family: arial;
   color: white;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;center&gt;
   &lt;div class="nav_bar"&gt;
    &lt;center&gt;&lt;font size="5"&gt;&lt;span class="shadow"&gt;&lt;b&gt;Text&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/center&gt;
   &lt;/div&gt;
  &lt;/center&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The '.nav_bar' div won't centre for some reason! Here is the output! I've added the centre tag to see if it would centre but it wont't can someone please help me</p>
  
  <p>Output:
  <img src="https://i.stack.imgur.com/NYNe2.png" alt="enter image description here"></p>