B4J Question [SOLVED] TableView header text size

micro

Well-Known Member
Licensed User
Longtime User
Hi
I put this in a css file for setting text size for header text in a tableview, but not work
B4X:
.table-view .column-header .label{
    -fx-font-weight: bold;
    -fx-text-size: 13;
}
Where I'm wrong?
Thanks
 

Daestrum

Expert
Licensed User
Longtime User
Methinks it should be -fx-font-size not -fx-text-size
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
/* TableView Header Text */
.table-view .column-header-background .label{

-fx-background-color: transparent;
-fx-font-size: 16px;
-fx-text-fill: White;
-fx-font-weight: Bold;

}
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
Make sure the filename is correct and that the CSS file is added to your project. Post your complete CSS file. If not all { } are correct your CSS file won't work correctly.
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
Correction: You don't need to post your CSS in here. You will find the solution by going here
 
Upvote 0
Top