Roger
Roger

Reputation: 597

Styling BorderPane top with CSS

Is it possible to style BorderPane top with CSS? For example I want to color it with different colors for left, right, center, bottom and top. Is that possible?

Upvotes: 0

Views: 1042

Answers (1)

oshatrk
oshatrk

Reputation: 529

No. All of them are just properties.

The BorderPane control gets nodes pointed by those properties and places these nodes on its surface directly, i.e. without any intermediate nodes.

For example, place one Pane into center and one Button into bottom of the BorderPane. Then you can see there is no any nodes in the hierarhy between the BorderPane and the Pane and between the BorderPane and the Button:

enter image description here

Upvotes: 2

Related Questions