OANote : if you declared the css selector like this ".label :red" the Pseudo Class will not work . you should not add any space before ":" i lost hours for thatComment·Article·Jul 19, 2022·Demystifying Pseudo Classes in JavaFX