Class in TR without one TD

Posted by Roy Grendester on Stack Overflow See other posts from Stack Overflow or by Roy Grendester
Published on 2012-06-22T09:06:10Z Indexed on 2012/06/22 9:16 UTC
Read the original article Hit count: 214

Filed under:
|
<table>
    <tr class="here"><td><input type="text" readonly=readonly></td></tr>
    <tr class="here"><td><input type="text" readonly=readonly></td></tr>
    <tr class="here"><td><input type="text" ></td></tr>
</table>

td {
    padding: 15px;
    margin: 10px;
}

.here {
    background-color: red;
}

http://jsfiddle.net/dZYEM/

How can i modify class .here that this working where child input has attribute readonly? I dont want modify html.

EDIT:

now i have: jsfiddle.net/dZYEM/2/

i would like receive: http://jsfiddle.net/dZYEM/3/

but without use style. I want receive this only with css.

© Stack Overflow or respective owner

Related posts about html

Related posts about css