title: Center horizontal form in bootstrap 3
body: <p>How would I center a horizontal form in bootstrap 3.2?  (in relation to the form container).</p>
  
  <p>You can see my example at <a href="http://www.bootply.com/odXfJPlHRV" rel="nofollow">http://www.bootply.com/odXfJPlHRV</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"/&gt;
  &lt;div id="signup" style="width:800px;border:1px solid black"&gt;
  &lt;form class="form-horizontal no-margin center-block"&gt;
      &lt;div class="form-group center-block"&gt;
          &lt;label for="inputEmail" class="control-label col-xs-2"&gt;Email&lt;/label&gt;
          &lt;div class="col-xs-2"&gt;
              &lt;input type="email" class="form-control" id="inputEmail" placeholder="Email"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
          &lt;label for="inputPassword" class="control-label col-xs-2"&gt;Password&lt;/label&gt;
          &lt;div class="col-xs-2"&gt;
              &lt;input type="password" class="form-control" id="inputPassword" placeholder="Password"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="form-group last-form-group"&gt;
          &lt;div class="col-xs-offset-2 col-xs-2"&gt;
              &lt;button type="submit" class="btn btn-primary"&gt;Create an account&lt;/button&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>