title: How to center a button within a div?
body: <p>I have a div that's width is 100%.</p>
  
  <p>I'd like to center a button within it, how might I do this?</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;div style="width:100%; height:100%; border: 1px solid"&gt;
    &lt;button type="button"&gt;hello&lt;/button&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>