Bootstrap responsive table

Wrap the table so it scrolls sideways on small screens instead of breaking the layout.

Bootstrap · Bootstrap responsive tableBeginner
<div class="table-responsive">
  <table class="table table-striped table-hover align-middle">
    <thead>
      <tr><th>#</th><th>Name</th><th>Email</th></tr>
    </thead>
    <tbody>
      <tr><td>1</td><td>Ali</td><td>ali@example.com</td></tr>
    </tbody>
  </table>
</div>
tableresponsivebootstrap5