JavaFX css substructure customizing

mico1410

New Member
I have css style class:\[code\].customTabPane { -fx-tab-min-height: 20;}.customTabPane:top *.tab-header-area { -fx-background-insets: 0, 0 0 1 0; -fx-padding: 5 0 0 0;}.customTabPane:top *.tab { -fx-padding: 0 0 0 0;}.customTabPane *.tab-header-background { -fx-background-color: red;}\[/code\]But *.tab-header-area, *.tab-header-background apply for all TabPane-s in application, not only for "customTabPane" (tabPane.getStyleClass().add("customTabPane")). How can i fix this?
 
Top