user3149186
user3149186

Reputation: 23

Set JavaFX table column name padding

I want to reduce the size of the padding arround the column name:

I tested this code:

.table-view .column-header{
    -fx-text-fill: -fx-selection-bar-text;
    -fx-font-size: 10;
    -fx-font-family: "Arial";
}

But with this css code I can only set the size of the text font. But I cannot the padding arround the text. Can you tell me how I can do this?

Upvotes: 2

Views: 2679

Answers (1)

James_D
James_D

Reputation: 209225

Try

.table-view .column-header{
    -fx-text-fill: -fx-selection-bar-text;
    -fx-font-size: 10;
    -fx-size: 11 ;
    -fx-font-family: "Arial";
}

Upvotes: 3

Related Questions