I can’t understand what element I should work to do this task. I tried
.tab-header-area .tab{
-fx-background-color:red;
-fx-padding:30px;
}
EDIT 1
This is what I get
But I have the same tab header inside big red rectangle. How can I increase distance between text and edge of the tab header area? By other words – how can I make tab header bigger with the same font size?
EDIT 2
When I do
.tab-header-area .tab .label{
-fx-padding:5px 30px 5px 0;
}
.tab-header-area .tab {
-fx-background-color: red ;
}
I get:
But I need (sorry, it’s gimp,not photoshop)
2
Answers
If you want a border around the tab (not the label), you have to use this:
If you want to manipulate the tab-container (where the label is in) itself you need this:
UPDATE
Default for a selected tab is that:
And this it how it goes:
Look at the modena.css (default JavaFX stylesheet) file for info on things to change.
Font size will not change dynamic, you have to take care of font size with a listener on size/width/height property of the tab (in relation to font size).
And there are a lot of pseudo tags like .tab:selected .tab:top etc. So be aware of this kind of things if you want the default behavior only with new design.
And finally have a look at css selectors, you missed the descending selectors (‘>’): http://www.w3schools.com/cssref/sel_element_gt.asp
It’s not really clear what you are looking for… maybe
with the css file