responsive-table

Responsive table

CSS3 & Vanilla JS

Super flexible & responsive table

A super user-friendly experience, start to use your table also on mobile!

lan lan lan


πŸ•ΉοΈ Demo

Check the demos to view the effect:


πŸ“¦ Package

You can download our working demos to use how you prefer:

What inside the zip file:

css/table-mobile.css
css/table-mobile-theme.css
js/table-mobile.js
demo-bootstrap.html
demo-dark.html
demo.html

How to use those files:


πŸ› οΈ Usage

Add style and javascript link below in your file, inside of head:

<link rel="stylesheet" href="css/table-mobile.css">
 <!-- Optional -->
<link rel="stylesheet" href="css/table-mobile-theme.css">
<script src="js/table-mobile.js"></script>

Add the code below in your file to init script, inside of head or footer:

<script>
  window.onload = () => {
    const selector = "table.table-mobile";
    window.TableMobile.doTable(selector);
  };
</script>

Add classes to your table:

<table class="table-mobile table-mobile-theme table-mobile-dark">
 <thead>
  <tr>
   <th>...</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>...</td>
  </tr>
 </tbody>
</table>

πŸ‘Ύ Connected project

React version:


πŸ• Pizza time

If you like this project and you want to support it… PIZZAAHA!