• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I give padding to image?

 
drashti pandya
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 10 buttons and each button has its own background image.I want to set top and bottom padding to each image.I have tried below code but it doesn't work.
#15{
-fx-background-image: url("drawer.png");
-fx-padding-top: 10px;
-fx-padding-top: 10px;
}
img.PNG
[Thumbnail for img.PNG]
File that contain layout
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic