title: JavaFX choicebox text color
body: <p>Iam trying to change the TextColor of an ChoiceBox in JavaFX.</p>
  
  <p>This is my css file:</p>
  
  <pre><code>.choice-box{
        -fx-background-color: 
          #000000,
          linear-gradient(#7ebcea, #2f4b8f),
          linear-gradient(#426ab7, #263e75),
          linear-gradient(#395cab, #223768);
      -fx-padding: 3 10 4 20;
      -fx-text-fill: white;
      -fx-font-size: 12px;
  }
  </code></pre>
  
  <p>And this is a screenshot of my choice-box: </p>
  
  <p><img src="https://i.stack.imgur.com/WzqSO.png" alt="enter image description here"></p>
  
  <p><code>-fx-text-fill: white;</code> works on buttons but not on choic boxes. Why?</p>
  
  <p>How can i change the color of the text in the choicebox?</p>