My HTML:
<tr><td>Text</td><td><input type="text" value=""></td></tr>
My CSS:
input:focus tr{ background-color:#fff;}
I want to highlight the row in white when I’m writing text in the input field. I know “tr” is before “input”, but is this possible to do in any way?
Thanks a bunch
No, sadly. See: Complex CSS selector for parent of active child
Here’s how you could do it, though: http://jsfiddle.net/minitech/udzcp/