title: Make heading center align
body: <p>How to center <code>&lt;h3&gt;</code> in the following 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 {
    color: #666;
    margin: 20px 10px 0px;
    padding: 0px 30px 0px 30px;
    text-align: center;
  }
  
  h3 {
    color: #ccc;
    background-color: black;
    margin: 0px;
    padding: 10px 10px 10px 10px;
    text-align: center;
    display: inline-block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
      &lt;h1&gt;title 1&lt;/h1&gt;
      &lt;h3&gt;title 3&lt;/h3&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsfiddle.net/tanaan/4a12rLs2/" rel="nofollow noreferrer">FIDDLE</a></p>