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
B4X:
.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
 

le_toubib

Active Member
Licensed User
Longtime User
how to post image ? it s a shared onedrive image link but why its broken that opens normally in browser
 
Upvote 0

le_toubib

Active Member
Licensed User
Longtime User
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: 201
Upvote 0
Top