Sample FXML with the BorderPanel.alignment “static property”:
<BorderPane>
<top>
<Label text="My Label" BorderPanel.alignment="CENTER"/>
</top>
</BorderPane>
The CSS-supported version:
<BorderPane stylesheets="Style.css">
<top>
<Label text="My Label" styleClass="labelClass"/>
</top>
</BorderPane>
Style.css would be:
.labelClass
{
-fx-borderpanel-alignement: center
}
For JavaFX versions 2.0 to 2.2 => no you cannot set the static layout properties via css.
You can create a feature request in the JavaFX jira to ask this functionality be implemented in a future JavaFX version.