B4J Question add background image to tabpane header background

le_toubib

Active Member
Licensed User
Longtime User
hii
how to add a background image to the area marked by the red arrow ?
i tried this code but it didnt work
Code: Copy
.tab-pane > .tab-header-area > .tab-header-background { 
    -fx-background-color: white; 
     -fx-background-image: url("/background.jpg");   
    -fx-border-color: #a3a7a8; 
    -fx-border-width: 0 0 1 0; 
    -fx-background-insets: 0; 
    -fx-pref-height: 45px; 
}
redir
 
So how to reference the file in the css out its located in dirassets
 

Attachments

  • 2016-05-26.jpg
    2016-05-26.jpg
    81.1 KB · Views: 427
Upvote 0
Back
Top