/* Set your border inset = to your border width! */ .button { -fx-border-width: 2px; -fx-border-color: lime; -fx-border-insets: -2px; }