user3530525
user3530525

Reputation: 691

Can I remove grey border below tabs in JavaFX Modena using CSS?

Basically, I'm trying to remove the grey line below the tabs so it appears flat (lol, ignore bad Spanish translations - I'm currently working on fixing the bundles): enter image description here

I've tried -fx-padding: 0; and -fx-border-width: 0; on various tab-related components.

Thanks.

Upvotes: 1

Views: 855

Answers (1)

aw-think
aw-think

Reputation: 4803

This line is the background insets of the tab header region.

You can solve this by putting this in your stylesheet:

.tab-pane:top > .tab-header-area > .tab-header-background {
  -fx-background-insets: 0, 0 0 0 0, 0;
}

Upvotes: 2

Related Questions