mdbootstrap / bootstrap-responsive-table

Tables allow you to aggregate a huge amount of data and present it in a clear and orderly way. Responsive tables allow tables to be scrolled horizontally with ease.

Home Page:https://mdbootstrap.com/how-to/bootstrap/table-responsive/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make table responsive in Bootstrap?

Responsive tables allow tables to be scrolled horizontally with ease. You can make any table responsive across all viewports by wrapping a .table with .table-responsive class. Or, pick a maximum breakpoint with which to have a responsive table up to by using .table-responsive{-sm|-md|-lg|-xl|-xxl}.

Always responsive

Across every breakpoint, use .table-responsive for horizontally scrolling tables.

<div class="table-responsive">
  <table class="table">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">Heading</th>
        <th scope="col">Heading</th>
        <th scope="col">Heading</th>
        <th scope="col">Heading</th>
        <th scope="col">Heading</th>
        <th scope="col">Heading</th>
        <th scope="col">Heading</th>
        <th scope="col">Heading</th>
        <th scope="col">Heading</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">1</th>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
      </tr>
      <tr>
        <th scope="row">2</th>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
      </tr>
      <tr>
        <th scope="row">3</th>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
        <td>Cell</td>
      </tr>
    </tbody>
  </table>
</div>

Much more examples and a detailed description can be found at 📄 Documentation page

About

Tables allow you to aggregate a huge amount of data and present it in a clear and orderly way. Responsive tables allow tables to be scrolled horizontally with ease.

https://mdbootstrap.com/how-to/bootstrap/table-responsive/