How to highlight a table row?

There is a table
<div class="page_table">
<tr class="alt">
Number 1
Number 2

the <tr>
A value of 1
A value of 2

.page_table tr :hover {background: #F6C06F;}
Despite the fact that you specify the selector string is the cell.
How to highlight entire row?

June 26th 19 at 14:13
3 answers
June 26th 19 at 14:15
.page_table tr:hover {background: #F6C06F;}
Without a space
June 26th 19 at 14:17
tr :hover
space remove
June 26th 19 at 14:19
.page_table tr:hover td {background: #F6C06F;}
Or just
.page_table tr:hover {background: #F6C06F;}

Find more questions by tags CSSHTML