I read something about CSS listlessly few thousand years ago, so I only know their purpose.
Now, to use B4J, they are practically necessary.
I suppose JavaFX CSS is an implementation of CSS, since I found a small utility that creates CSS code but this code does not work when copied as it is.
Forgive my verbosity:
how can I get the bold, for example?
From this guide: JavaFX CSS Reference Guide:
<font-weight> The font's weight, using the following syntax:
[ normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 ]
...
-fx-font-size <font-size> inherit
-fx-font-weight <font-weight> inherit
I tried using both:
they do not work (but
works fine)
How should I behave, generally in B4J, with CSS?
Thank you in advance
Now, to use B4J, they are practically necessary.
I suppose JavaFX CSS is an implementation of CSS, since I found a small utility that creates CSS code but this code does not work when copied as it is.
Forgive my verbosity:
how can I get the bold, for example?
From this guide: JavaFX CSS Reference Guide:
<font-weight> The font's weight, using the following syntax:
[ normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 ]
...
-fx-font-size <font-size> inherit
-fx-font-weight <font-weight> inherit
I tried using both:
B4X:
mlblTitle.Style = "-fx-font-weight:bold"
B4X:
mlblTitle.Style = "-fx-font-weight: bold"
they do not work (but
B4X:
mlblTitle.Style = "-fx-font-size:18"
How should I behave, generally in B4J, with CSS?
Thank you in advance
Last edited: