Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"DATATABLE"
Bootstrap 4.1.1 Snippet by
adriano3429
4.1.1
Preview
HTML
CSS
View Full Screen
Forked from
Fork
Fork this
Parent
231
 
0 Fav
Post to Facebook
Tweet this
<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
Free Template
Light Bootstrap Dashboard
603.0K
506
Bootstrap Snippet for Datatable
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76