How can I disable Unknown property:
error in eclipse while writing JavaFx css properties on Eclipse Mars?
For example: Unknown property: "-fx-background-color"
in -fx-background-color: #CCFF99;
How can I disable Unknown property:
error in eclipse while writing JavaFx css properties on Eclipse Mars?
For example: Unknown property: "-fx-background-color"
in -fx-background-color: #CCFF99;
Right click on your project and go to build path > Configure build path. Under libraries, click on "Add library..." button. Add JavaFX SDK to your project. This will resolve your issue.
Not sure since I can't reproduce this issue, but do you have e(fx)clipse installed? If not, try installing it- it seems to help Eclipse to be more compatible with javaFX.
If you already have it, or if it doesn't help, try the solutions posted here, here, and here.