Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

CSS: selecting first or last list-cell in a ListView with CSS selector?

tobiApr 17 2012 — edited Apr 19 2012
Is it possible to select the first and the last list item in a ListView control by CSS? I would like to style the first and last list-cell with another background than the middle items...

in CSS2 I can select the first child of a parent node with "node:first-child"

In JavaFX2 CSS reference guide I found that it's not possible at moment. Any other solution?

Tobi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 17 2012
Added on Apr 17 2012
3 comments
888 views