Problems with setting TableColumn width in FXML using CSS
问题 Here is my .fxml code: <TableColumn id="tableColumnVertical" text=""> <graphic> <VBox> <Label text="text"/> </VBox> </graphic> </TableColumn> Here I have simplified .css code: #tableColumnVertical { -fx-background-color: Lime; -fx-min-width: 40; -fx-max-width: 40; } This doesn't set width of TableColumn but sets background. Why? I can use this code: <TableColumn id="tableColumnVertical" text="" minWidth="40" maxWidth="40"> and it works. Why inline works and .css does not? While writing this