🍄It may seem duplicate with this question but it is not working.
Two classes exist which extend
HBoxand have oneTextFieldelement.I have added on each one aStyleClasslike this:
//for one class
getStyleClass().add("search-box");
//for the other class
getStyleClass().add("libraries-search-box");
So i am modifing the appearence of their
TextFieldwith the above css code:
.search-box .text-field {
-fx-background-color: white;
-fx-background-insets:3.0;
-fx-background-radius: 5.0;
.....
}
.libraries-search-box .text-field {
-fx-background-color: white;
-fx-background-insets:3.0;
-fx-background-radius: 5.0;
....
}
I want to replace the duplicate code and i try:
.search-box , .libraries-search-box .text-field {
-fx-background-color: white;
-fx-background-insets:3.0;
-fx-background-radius: 5.0;
...//
}
but it works only for '.libraries-search-box'.How i get get it work for both?