title: How to center <input> horizontally in a <div>?
body: <p>I have attempted multiple times, with multiple different possible solutions from around Stack Overflow to accomplish this task, yet frustratingly, I cannot seem to be able to center the input box in the div.</p>
  
  <p>My code essentially looks like this at the moment:</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>div {
    width: 100vw;
    position: relative
  }
  
  h1 {
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
    &lt;h1&gt;Title&lt;/h1&gt;
    &lt;input type='text'&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>As of the moment, the word "Title" is centered on the screen, but the input box is still on the left hand side. </p>
  
  <p>Is there any way to be able to center the  horizontally in the div?</p>