I have a table with class .theClass. The table only has two columns.
Is it possible to select the entire column and have the entire column affected on a hover event?
Want to change the background-color of all td in column when any td of that column is hovered.
Many thanks in advance!
This is not possible in CSS, and the fundamental reason is that columns do not constitute elements. You can use
colelements, but they are really not column elements: they do not contain cells as children, and they can only be used to set some properties on cells, and thus there is no concept of hovering acolelement.Thus, even parent selectors would not help, as a cell has no parent or ancestor that would correspond to a column.