I would like to simply have the text inside a Button to fill more of the Button or increase the font size in a button without increasing its size.
I tried using negative padding but it does not give the desired result.
DVarga
21.9k6 gold badges57 silver badges60 bronze badges
1 Answer 1
You can simply remove the padding using the -fx-padding property:
.button {
-fx-padding: 0;
-fx-font-size: 20;
}
answered Oct 5, 2017 at 10:33
DVarga
21.9k6 gold badges57 silver badges60 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-java