Keep BS5 table formating.

Keep BS5 table formating.

dolajodolajo 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

  • kthorngrenkthorngren Posts: 16,773Questions: 25Answers: 3,971

    but when I se Datatable then borders of table are removed

    You need to add BS5 table classes like table-bordered to style the table. Click on the HTML tab of the BS5 example.

    Also first cell is not fixed.

    Looks like the first column is fixed in your test case when scrolling to the right. Does this not work for you?

    Kevin

  • dolajodolajo Posts: 3Questions: 1Answers: 0

    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

  • allanallan Posts: 56,837Questions: 1Answers: 9,033 Site admin

    I think we'll need a link to an example showing the issue please. It does look like a CSS conflict somewhere.

    Allan

  • dolajodolajo Posts: 3Questions: 1Answers: 0

    Here is example from my fisrt post.
    Here is same example without Datatable on table.

Sign In or Register to comment.