<div class="wrap">
<table>
  <tr>
    <td>test</td>
  </tr>
</table>
<table>
  <tr>
    <td>longer</td>
  </tr>
</table>
<table>
  <tr>
    <td>I'm pretty wide, really.</td>
  </tr>
</table>
  <table>
  <tr>
    <td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nulla provident modi aut debitis minus temporibus tempore saepe quas hic ratione itaque quo quisquam earum.</td>
  </tr>
</table>
</div>
body {
  background: #ccc;
}
.wrap {
  width: 300px;
  margin: 0 auto;
  background: white;
}
table {
  border: 1px solid red;
  margin: 5px 0;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js

Packages

This Pen doesn't use any packages.