This discussion is archived
2 Replies Latest reply: Jan 26, 2013 1:16 PM by James_D RSS

How to color a table view header's text via css

987330 Newbie
Currently Being Moderated
I have managed to change font-name, background and text alignment of my table view header, but the text-fill line is just ignored! What's the correct way to do this?
Example:
.table-view .column-header, .table-view .filler {
-fx-text-fill: white;
-fx-font-family: "Helvetica";
-fx-font-size: 10px;
-fx-font-weight: bold;
-fx-size: 25;
-fx-border-style: solid;
-fx-border-insets: 0 1 1 0, 0 0 0 0;
-fx-border-width: 0.083333em, 0.083333em;
}

I also added:

.table-view.column-header.label{
     -fx-text-fill: white;
}

Wich was recommended on a site, but didn't work either..

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points