I have added custom pseudoclass to my own class of cell, which was then decorated with yellow background in CSS. Unfortunately, this affected only cells:
Is it possible to mark entire row with pseudoclass?
PLEASE, NOTE THE TAGS
Question is NOT related with Javascript
and HTML
. It is related with desktop programming library of JavaFX
, which is also using CSS
.
I was able to make entire row styled once I create not custom TableCell
, but custom TableRow
. It is explicitly said in Javadoc, that namely this class has CSS class of table-row-cell
, which was initially confusing me. It means "cell, representing an entire row of a table".
So, by supplying pseudoclasses to this class, I was able to color entire row correctly.