I've used html+css quite a lot but I'm completely new to javafx+css. So this will be a newbie question but I can't find the answer anywhere.
I have a large GridPane full of Labels (besides others). I can set padding for all these Labels like:
GridPane.containerLevel02 Label {
-fx-padding: 0 0 0 5;
}
This works. I want some of the labels to be more indented so I create the "leftIndent" class for them:
GridPane.containerLevel02 Label.leftIndent {
-fx-padding: 0 0 0 20;
}
This works too.
BUT, I don't want to specify the three zeros there because if I ever decide to add top/bottom padding to Labels in general, it will not affect the "leftIndent" labels.
What I'm looking for is something like:
GridPane.containerLevel02 Label.leftIndent {
-fx-padding-left: 20;
}
... like in "normal" CSS or ...
GridPane.containerLevel02 Label.leftIndent {
-fx-padding: null null null 20;
}
...or anything that would let me specify left padding leaving the top, right and bottom padding untouched with whatever values they currently have.
Is that possible? THANKS!