title: Center two divs side by side in contact form
body: <p>I'm trying to center two input fields side by side together with horizontally centering. I have two problems, the first one is that the two input fields for whatever reason overlap each other a little. </p>
  
  <p>The closest I have been to solving this problem is to use "box-sizing: border-box" but that, unfortunately, removes the padding and thus change the design. The second problem is that I need both of the input fields to be in the center. </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>.quote-page .contact .box {
    width: 70%;
  }
  
  .quote-page .contact .box .left {
    float: left;
    width: 50%;
  }
  
  .quote-page .contact .box .right {
    float: left;
    width: 50%;
  }
  
  .quote-page .form-2 {
    position: relative;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    color: rgb(77, 77, 77);
    border: none;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    line-height: 1.42857143;
    height: 30px;
    width: 100%;
    margin: 10px 0 10px 0;
    padding: 6px 12px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="box"&gt;
    &lt;div class="left"&gt;
      &lt;input name="email" type="email" class="form-2"&gt;
    &lt;/div&gt;
    &lt;div class="right"&gt;
      &lt;input name="email" type="email" class="form-2"&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here is the complete script so you can see the problem:</p>
  
  <p><a href="https://codepen.io/anon/pen/BdQqeN" rel="nofollow noreferrer">https://codepen.io/anon/pen/BdQqeN</a></p>