Wrap generated tables in a <div class="table"> to allow sensible overflow-handling in CSS.