title: CSS: Can't get submit button to center
body: <p>Very odd and I spent an hour today trying to figure out what I'm doing wrong. Have a email signup form. Four input fields and a submit button. In my design, the submit button should be centered under the four fields. However, instead the button is flush left aligned no matter whether I use or don't use float:left; or clear:both; or margin:0 auto; In other words, the usual suspects.</p>
  
  <p>Here's the site. The form is on the bottom: <a href="http://ellismarsalis2017.jasonmarsalis.com/" rel="nofollow noreferrer">http://ellismarsalis2017.jasonmarsalis.com/</a></p>
  
  <p>Here's the 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>#footerForm {
    position: relative;
    float: none;
    width: 728px;
    height: auto;
    margin: 0 auto;
    padding: 18px auto 0;
  }
  
  footer form input {
    float: left;
    color: #2a358f;
    width: 44%;
    background: #edc53e;
    border-radius: 8px;
    margin: 0 2% 14px;
    font-size: 18px;
    padding: 0 .5%;
    border: none;
  }
  
  footer form input.signUp {
    font-family: "clarendon-urw", serif;
    float: none!important;
    clear: both;
    background: #2a358f;
    color: #edc53e;
    margin: 0 auto;
    font-size: 18px;
    padding: 8px 24px;
    border: none;
    text-align: center;
  }
  
  footer p {
    padding: 28px 0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="footerForm"&gt;
    &lt;form name="" method="post" action="http://www.yoursite.com/box.php"&gt;
      &lt;input name="name" type="text" id="name" value="Your Name"&gt;
      &lt;input name="field1" type="text" id="field1" value="Your City"&gt;
      &lt;input name="email" type="text" id="email" value="Your Email Address"&gt;
      &lt;input name="field2" type="text" id="field2" value="Your State"&gt;
      &lt;input name="p" type="hidden" id="p" value="7"&gt;
      &lt;input type="hidden" name="nlbox[1]" value="1"&gt;
      &lt;input type="submit" name="Submit" class="signUp" value="Sign me up for the Email List!"&gt;
    &lt;/form&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>