Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82386

Datatables styling issues with bootstrap (White background in black themes)

$
0
0

When using DataTables in combination with Bootstrap (or more specifically a dark themed style, for example one retrieved from Bootswatch) you might notice styling issues that are apparant such as a white background for your table which might not fit in your theme.

This is why I recommend removing the following lines from DataTables.min.css:

div.DTS div.dataTables_scrollBody{background:repeating-linear-gradient(45deg, #edeeff, #edeeff 10px, #fff 10px, #fff 20px)}

And

div.DTS div.dataTables_scrollBody table{background-color:white}

This is not a bug, per sé, just simply putting this out there for people who have experienced the same issues with Bootstrap usage.

Kind regards


Viewing all articles
Browse latest Browse all 82386

Trending Articles