In my JavaFX CSS style sheet, I currently have the following code for a tag called #myText in my FXML file. This code results in a black textArea with red text, which is exactly what I want. However, I now want to make the background of the textArea transparent (by adjusting the opacity) while keeping the text color solid. Adding fx-opacity changes the opacity of both the background and text, so I'm unsure how to achieve this. Can anyone help me figure out a solution?
#myText {
-fx-background-color: black;
-fx-text-fill: red;
}
#myText .content {
-fx-background-color: black;
}