title: Bootstrap table extending beyond the panel when resizing the browser
body: <p>I am trying to build a panel with a table inside. The code looks like this:    </p>
  
  <pre><code>&lt;div class="container"&gt;
                &lt;div class="row"&gt;
                 &lt;div class="panel panel-default col-xs-12"&gt;
  
               &lt;div class="panel"&gt;
                 &lt;div class="panel-heading bg-primary"&gt;
                  &lt;h3 class="panel-title"&gt;This is a panel&lt;/h3&gt;
                &lt;/div&gt;
  
                &lt;div class="panel-body"&gt;
                  &lt;p&gt;What is Lorem Ipsum?
                   Lorem Ipsum is simply dummy text of the printing and  typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p.
                &lt;/div&gt; &lt;!-- panel body --&gt;
  
                  &lt;!-- Table inside the panel --&gt;
                  &lt;table class="table"&gt;
                    &lt;thead&gt;
                      &lt;tr&gt;
                        &lt;th&gt;Firstname&lt;/th&gt;
                        &lt;th&gt;Lastname&lt;/th&gt;
                        &lt;th&gt;Email&lt;/th&gt;
                      &lt;/tr&gt;
                    &lt;/thead&gt;
                    &lt;tbody&gt;
                      &lt;tr&gt;
                        &lt;td&gt;John&lt;/td&gt;
                        &lt;td&gt;Doe&lt;/td&gt;
                        &lt;td&gt;john@example.com&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;td&gt;Mary&lt;/td&gt;
                        &lt;td&gt;Moe&lt;/td&gt;
                        &lt;td&gt;mary@example.com&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;td&gt;July&lt;/td&gt;
                        &lt;td&gt;Dooley&lt;/td&gt;
                        &lt;td&gt;july@example.com&lt;/td&gt;
                      &lt;/tr&gt;
                    &lt;/tbody&gt;
                  &lt;/table&gt;
                &lt;/div&gt; &lt;!-- panel --&gt;
  
  
            &lt;/div&gt; &lt;!-- row --&gt;
          &lt;/div&gt; &lt;!-- container --&gt; 
  </code></pre>
  
  <p>The panel looks o.k on most screen sizes, except the mobile one where the table breaks the panel. I'm not sure what I'm doing wrong since the example is very similar with the one found on the Bootstrap website and it seems to be responsive on all screen sizes.  Thank you!</p>
  
  <p><a href="https://i.stack.imgur.com/oCf4H.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oCf4H.jpg" alt="Table breaking the panel"></a></p>