Here are some CSS queries:
- How can I create a semi-transparent color using a color variable in CSS?
* {
-my-color: #123456;
}
.label {
-fx-text-fill: ???
}
What should be inserted in "???" to achieve a 50% opacity version of -my-color? Is it better to use Java instead of CSS for this task?
- How to smoothly transition between colors from default to hover state in CSS?
I aim to switch the color from, let's say, red to blue upon button hover, but I don't want an abrupt change. Would it be more suitable to utilize Java rather than CSS for this purpose?
- How do you designate alternative fonts in CSS?
I want to ensure that both Japanese and Arabic text displays correctly using my specified font in TextFields. Unfortunately, I'm facing challenges in achieving this.
EDIT: While I have designated Japanese and Arabic fonts, I need a way for my chosen font to display regardless of the user inputting either language in the TextField.
EDIT2: It is important to note that JavaFX's CSS follows CSS 2.1 standards.