0

I'm working on a project and am theming a JavaFX application with CSS as I go. I'm having trouble removing the border around the Content of a JavaFX TitledPane in an Accordion. There appears to be 1px line at the bottom that I cannot seem to remove (screenshot: https://i.stack.imgur.com/CiINc.png).

Has anyone faced a similar issue before?

Salman Arif
  • 105
  • 5

2 Answers2

4
accordion.setStyle("-fx-box-border: transparent;");

Reasoning behind why this works is explained in the answer to the similar question:

Community
  • 1
  • 1
jewelsea
  • 150,031
  • 14
  • 366
  • 406
0
.titled-pane > *.content {
    -fx-border-color: transparent;
}
Nathan Tuggy
  • 2,237
  • 27
  • 30
  • 38
A.Abdelhak
  • 140
  • 4
  • Could you please [edit] in an explanation of why this code answers the question? Code-only answers are [discouraged](http://meta.stackexchange.com/q/148272/274165), because they don't teach the solution. – Nathan Tuggy Dec 22 '15 at 05:10
  • This removes the border from TitledPane's inside the Accordion, not from the accordion itself – Alessandro Roaro Apr 27 '20 at 16:23