title: Centering two buttons with Bootstrap
body: <p>I'm trying to center two form buttons with Bootstrap but I can't get it to work!</p>
  
  <p>here is my code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;title&gt;Form&lt;/title&gt;
  
      &lt;!-- Bootstrap --&gt;
      &lt;link href="static/fw/css/bootstrap.min.css" rel="stylesheet"&gt;
      &lt;link href="static/fw/css/bootstrap-theme.min.css" rel="stylesheet"&gt;
  
      &lt;!-- Custom styles --&gt;
      &lt;link href="static/code/style.css" rel="stylesheet"&gt;
  
      &lt;!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --&gt;
      &lt;!-- WARNING: Respond.js doesn't work if you view the page via file:// --&gt;
      &lt;!--[if lt IE 9]&gt;
        &lt;script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"&gt;&lt;/script&gt;
        &lt;script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"&gt;&lt;/script&gt;
      &lt;![endif]--&gt;
    &lt;/head&gt;
    &lt;body&gt;
  
  
      &lt;div class="container" role="main"&gt;
  
          &lt;div  class="center-block"&gt;
              &lt;button type="submit" class="btn btn-success"&gt;Save&lt;/button&gt;
              &lt;button type="submit" class="btn btn-danger"&gt;Cancel&lt;/button&gt;
          &lt;/div&gt;
  
  
      &lt;/div&gt; &lt;!-- /container --&gt;
  
      &lt;!-- jQuery (necessary for Bootstrap's JavaScript plugins) --&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;!-- Include all compiled plugins (below), or include individual files as needed --&gt;
      &lt;script src="static/fw/js/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;script src="static/code/script.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>