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

Datatables "compact" class prevents centering of elements

$
0
0

I've got a datatable that I can't seem to get the text within <th> elements centered. If I remove the compact class from the table, the header <th> elements center just fine.

Is there a solution where I could have the <th> elements centered and keep using the "compact" class?

A few notes about my setup:
-bootstrap 4
-lots of options for datatables being used (fixed columns, server side processing, etc)


Viewing all articles
Browse latest Browse all 82001

Trending Articles