Keep BS5 table formating.
Keep BS5 table formating.
dolajo
Posts: 3Questions: 1Answers: 0
Hello, can somebody help me with formating of table by BS5 and Datatable? When I dont use Datatable the formating of table is good but when I se Datatable then borders of table are removed. Example code is here. Also first cell is not fixed.
Thanks for any advice what I am doing wrong.
Answers
You need to add BS5 table classes like
table-bordered
to style the table. Click on the HTML tab of the BS5 example.Looks like the first column is fixed in your test case when scrolling to the right. Does this not work for you?
Kevin
Here is example how table looks when I remove only script section for adding Datatable for table
and here is how looks table when I set Datable. As you can see border of header and body of table missing and first column is not fixed when I move with table i X direction. I am using Microsoft Edge in version 103.0.1264.77
I think we'll need a link to an example showing the issue please. It does look like a CSS conflict somewhere.
Allan
Here is example from my fisrt post.
Here is same example without Datatable on table.