M micro Well-Known Member Licensed User Longtime User Mar 4, 2018 #1 Hi I put this in a css file for setting text size for header text in a tableview, but not work Code: Copy .table-view .column-header .label{ -fx-font-weight: bold; -fx-text-size: 13; } Where I'm wrong? Thanks
Hi I put this in a css file for setting text size for header text in a tableview, but not work Code: Copy .table-view .column-header .label{ -fx-font-weight: bold; -fx-text-size: 13; } Where I'm wrong? Thanks
Erel B4X founder Staff member Licensed User Longtime User Mar 4, 2018 #2 Have you add the css file to Form.Stylesheets? Upvote 0
M micro Well-Known Member Licensed User Longtime User Mar 4, 2018 #3 Erel said: Have you add the css file to Form.Stylesheets? Click to expand... yes Code: Copy MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "table.css")) Upvote 0
Erel said: Have you add the css file to Form.Stylesheets? Click to expand... yes Code: Copy MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "table.css"))
Daestrum Expert Licensed User Longtime User Mar 4, 2018 #4 Methinks it should be -fx-font-size not -fx-text-size Upvote 0
ThRuST Well-Known Member Licensed User Longtime User Mar 4, 2018 #5 /* 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; } Click to expand... Upvote 0
/* 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; } Click to expand...
M micro Well-Known Member Licensed User Longtime User Mar 5, 2018 #6 Thanks, but it not work. Last edited: Mar 5, 2018 Upvote 0
ThRuST Well-Known Member Licensed User Longtime User Mar 5, 2018 #7 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
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.
ThRuST Well-Known Member Licensed User Longtime User Mar 5, 2018 #8 Correction: You don't need to post your CSS in here. You will find the solution by going here Upvote 0
M micro Well-Known Member Licensed User Longtime User Mar 5, 2018 #9 Thanks ThRuST, now work fine. Upvote 0