---
title: "Comment by Omar alpjaly on \"Demystifying Pseudo Classes in JavaFX\" | Hashnode"
description: "Note : if you declared the css selector like this &quot;.label :red&quot; the Pseudo Class will not work . you should not add any space before &quot;:&quot; i l"
url: "https://hashnode.com/posts/demystifying-pseudo-classes-in-javafx/61f03894e247b2151e61f4e4/comment/62d70c44d3af5e3713d6140e"
---

[Discussion](https://hashnode.com/posts/demystifying-pseudo-classes-in-javafx/61f03894e247b2151e61f4e4)

Comment [Demystifying Pseudo Classes in JavaFX](https://hashnode.com/posts/demystifying-pseudo-classes-in-javafx/61f03894e247b2151e61f4e4)

[Omar alpjaly](https://hashnode.com/@OmarAlpjaly)

[Jul 19, 2022](https://hashnode.com/posts/demystifying-pseudo-classes-in-javafx/61f03894e247b2151e61f4e4/comment/62d70c44d3af5e3713d6140e)

Note : 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 that
