title: Center Bootstrap Button
body: <p>I'm having trouble with centering Bootstrap button in panel. Margin right and left auto doesn't work.
  Is there a way to properly center the button? The Button needs to be centered because of the mobile scale.</p>
  
  <p><a href="https://i.stack.imgur.com/QQZ4m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QQZ4m.png" alt="enter image description here"></a></p>
  
  <p>Code:</p>
  
  <pre><code>&lt;div class="n_monitor"&gt;
      &lt;div class="panel panel-default"&gt;
          &lt;div class="panel-body"&gt;
              &lt;div class="btn-group"&gt;
                  &lt;button type="button" class="btn btn-default"&gt;Server 1&lt;/button&gt;
                  &lt;button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;
                      &lt;span class="caret"&gt;&lt;/span&gt;
                      &lt;span class="sr-only"&gt;Toggle Dropdown&lt;/span&gt;
                  &lt;/button&gt;
                  &lt;ul class="dropdown-menu"&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Action&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>.n_monitor .panel {
      width: 628px;
      border: solid 1px #ebebeb;
      border-top-left-radius: 0px;
      border-top-right-radius: 0px;
      border-bottom-left-radius: 3px;
      border-bottom-right-radius: 3px;
      height: 94px;
      box-shadow: none;
      margin: 0;
      background-color: #f4f4f4;
      margin-left: auto;
      margin-right: auto;
  }
  
  .n_monitor .btn {
      width: 126px;
      height: 54px;
      background-color: #3baed8;
      border: none;
      color: #fff;
      font-size: 14px;
      border-radius: 3px;
  }
  </code></pre>