DataTables Styling Doesn't Work
DataTables Styling Doesn't Work
sonyharyono96
Posts: 1Questions: 0Answers: 0
Link to test case: https://live.datatables.net/kolemuga/2/edit?html,js,output
Debugger code (debug.datatables.net): -
Error messages shown: -
Description of problem:
I am using datatable with bootstrap 5 from builder, but style class is not working, I provide the link to test case
Replies
You need to add the class
table
to your table's HTML - see updated example here: https://live.datatables.net/kolemuga/4/edit . Also, if you changestripe
to betable-striped
, you'll get the standard DataTables styling.Colin
Also, it would be worth checking over the Bootstrap documentation for how they style tables.
Allan