Matic Kukovec
Matic Kukovec

Reputation: 436

Wrapped headers background color?

I have a Tabulator table with this CSS styling for the headers:

.mytabulator.green .tabulator-header
                   .tabulator-col {
    background: #92d050;
}
.mytabulator.wrapped-headers .tabulator-header
                             .tabulator-col
                             .tabulator-col-content
                             .tabulator-col-title {
    white-space: normal;
}

Which makes the headers look like this:

enter image description here

... but how do I also style the header background green? By background I mean this part:

enter image description here

I have tried multiple "Column & header" selectors and nothing works.

Thanks, Matic

Upvotes: 0

Views: 670

Answers (1)

Oli Folkerd
Oli Folkerd

Reputation: 8398

you need to add a background colour to the tabulator-header element too:

.mytabulator .tabulator-header, .mytabulator .tabulator-header .tabulator-col {
    background: #92d050;
}

Upvotes: 1

Related Questions