Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Table headers with different colors
I need to change table headers (but also cells) colors in order to separate different areas of my table.
I found the way to change colors in table cells (using the style generator) but not the color of headers.
Could someone suggest a solution ?
Tks
Tullio
Hi
If you want to change the color for all header cells same, you can set it in the css like this:
.v-table-your_table_stylename .v-table-header {
background-color: red;
}
Greets
E. Yildiz: If you want to change the color for all header cells same, you can set it in the css like this:
.v-table-your_table_stylename .v-table-header { background-color: red; }
Ticket #8218 might be relevant here if you want to target header cells rather than the whole header.
Currently, if I recall correctly, there is no support for individual style names for each header cell or column.