"DATATABLE"
Bootstrap 4.1.1 Snippet by adriano3429

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <table class="table"> <thead> <tr> <td>Name</td> <td>phone</td> <td>Name</td> <td>phone</td> <td>Name</td> <td>phone</td> <td>Name</td> <td>phone</td> </tr> </thead> <tbody> <tr> <td>AAAA</td> <td>323232xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x </td> <td>BBBBB</td> <td>323232</td> <td>AAAA</td> <td>323232xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x </td> <td>BBBBB</td> <td>323232</td> </tr> <tr> <td>AAAA</td> <td>323232xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x </td> <td>BBBBB</td> <td>323232</td> <td>AAAA</td> <td>323232xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x </td> <td>BBBBB</td> <td>323232</td> </tr> <tr> <td>AAAA</td> <td>323232xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x </td> <td>BBBBB</td> <td>323232</td> <td>AAAA</td> <td>323232xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x </td> <td>BBBBB</td> <td>323232</td> </tr> <tr> <td>AAAA</td> <td>323232xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x </td> <td>BBBBB</td> <td>323232</td> <td>AAAA</td> <td>323232xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x </td> <td>BBBBB</td> <td>323232</td> </tr> <tr> <td>AAAA</td> <td>323232xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x </td> <td>BBBBB</td> <td>323232</td> <td>AAAA</td> <td>323232xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x </td> <td>BBBBB</td> <td>323232</td> </tr> </tbody> </table> <hr> </div>
tbody { display:block; height:200px; overflow:auto; } thead, tbody tr { display:table; width:100%; table-layout:fixed; } thead { width: calc( 100% - 1em ) }

Related: See More


Questions / Comments: