title: JavaFX: Styling content of custom ListView cell
body: <p>I have ListView in my JavaFX application with custom ListCells. I set the root Pane, a GridPane via the setGraphic method. Now i want to style the content of the GridPane via CSS. Let's say this GridPane has the class my-gridpane.</p>
  
  <pre><code>.list-cell:selected &gt; .my-gridpane{
    /* CSS sytles */
  }
  </code></pre>
  
  <p>Unfortunately that does not work. I think it is because I don't add the content of the cell to its children so the direct children selector does not work. Now to my question:
  Is it possible to style the custom content of a list cell via CSS?</p>
  
  <p>Thanks in advance</p>