I want to make image to fit entire button with no extra space. I have tried this, but its not working:
.toggle-button {
-fx-background-image: url("close.png");
-fx-background-repeat: stretch;
-fx-background-position: center center;
}
.toggle-button:selected{
-fx-background-image: url("contact.png");
}
This is the result I get:
How to make that exit picture (red square) fill entire button?
