title: How to align Bootstrap panel center of a web page?
body: <p>I would like to align this entire panel center of the web page. Could someone help me out on this?</p>
  
  <p>Also could you please help me a good book I can use to learn Bootstrap design?</p>
  
  <pre><code>&lt;div class="panel panel-default" style="max-width:500px;margin-left:auto;margin-right:auto;"&gt;
              &lt;div class="panel-heading"&gt;
                  &lt;h3 class="panel-title text-center"&gt;User Login&lt;/h3&gt;
              &lt;/div&gt;
              &lt;div class="panel-body"&gt;
                  @Html.ValidationSummary(true)
  
                  &lt;table class="table"&gt;
                      &lt;tbody&gt;
                          &lt;tr&gt;
                              &lt;td&gt;@Html.LabelFor(model =&gt; model.Username)&lt;/td&gt;
                              &lt;td&gt;@Html.EditorFor(model =&gt; model.Username)&lt;/td&gt;
                              &lt;td&gt;@Html.ValidationMessageFor(model =&gt; model.Username)&lt;/td&gt;                            
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;@Html.LabelFor(model =&gt; model.Password)&lt;/td&gt;
                              &lt;td&gt;@Html.EditorFor(model =&gt; model.Password)&lt;/td&gt;
                              &lt;td&gt;@Html.ValidationMessageFor(model =&gt; model.Password)&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;&lt;/td&gt;
                              &lt;td&gt;
                                  &lt;input type="submit" value="Login" class="btn btn-default" style="" /&gt;
                              &lt;/td&gt;
                              &lt;td&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;/tbody&gt;
                  &lt;/table&gt;             
  
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p><br>
  Thanking you<br>
  Swetha</p>