1

I have a css file that I'm trying to import in SceneBulider . The file contains the following text:

.pagination .pagination-control { visibility: hidden; }

The problem here is that the property visibility is unknown (to quote the warning, Unknown property: "visibility"). Does visibility really doesn't exist, or is it an error from eclipse ( I am using eclipse neon, with SceneBuilder and e(fx)clipse installed). What I am trying to do is hide the pagination labels by using a css file, since I couldn't find another method.

Thank you.

2
  • 1
    using .setStyle("visibility: hidden;"); works just fine for me, what are you trying to use it on? Commented Jan 12, 2017 at 8:34
  • Thank you so much :D. It finally fixed the problem of hiding my pagination labels of a table. Commented Jan 12, 2017 at 8:36

1 Answer 1

1

In CSS (JavaFX) all properties start with the keyword "-fx-" (excepted fo Visibility), So either the syntax is false or this property does not work with this selector !

Sign up to request clarification or add additional context in comments.

2 Comments

I changed my code in .pagination .pagination-control { -fx-visibility: hidden; }, and now -fx-visibility is unknown
I checked and the property visibility exists without keyword -fx-

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.