title: JavaFX tab header text could not align center
body: <p>I am using .tab-pane .tab {} to change tab header color and width. This has no problem.</p>
  
  <pre><code>.tab-pane .tab
  {
      -fx-background-color: linear-gradient(to bottom, repeat, #CCCCCC , #808080 );
      -fx-pref-width: 150.0;
      -fx-text-alignment: CENTER;  &lt;-- does not work
  }
  </code></pre>
  
  <p>However, the text alignment has no effect, how do I do this?</p>