aknuds1
aknuds1

Reputation: 67987

How can I make DataTable columns at least as wide as the header text?

I notice that when using DataTables, column headers are sometimes word wrapped, since the width is apparently just calculated based on content in the table body. How can I configure DataTables to make columns at least wide enough to hold header text without wrapping?

Upvotes: 2

Views: 1398

Answers (1)

user557419
user557419

Reputation:

Have you tried white-space: nowrap; using css?

Upvotes: 5

Related Questions