background color disappears after short flash
background color disappears after short flash
atelieragile
Posts: 1Questions: 1Answers: 0
in FixedColumns
When including the Fixed Columns with Bootstrap 4 the row background colors disappear. On inspecting in Chrome Dev Tools the correct BG color shows, but is not displayed. Even a style attribute inside the tr tag is ignored. The correct background color flashes shorty though.
This question has an accepted answers - jump to answer
Answers
Bootstrap 4 applies its background colours to the
td
elements which is why you are seeing what you are (nothing to do with DataTables of FixedHeader). The effect is that thetd
background is overlaying thetr
background.To workaround it you'd need to target your background to the
td
cells: http://live.datatables.net/vedukovu/2/edit .Allan