html - Select all td in tr in nested table with css selector -
i want select td inside first tr of tbody. like: tbody:first-child td --> gives me result can see on image, yellow result.
my html - short version
i know there unclosed tags copied debugger because generated jquery. ideas?
<table class="wc-header"> <thead> <tbody> <tr> <td rowspan="3">medewerker 1</td> <td class="row_header">van</td> <td class="hours" data-person="1" data-day="1" data-row="from"> <input class="past selected" type="text" readonly="readonly"> </td> <td class="hours" data-person="1" data-day="2" data-row="from"> <td class="hours" data-person="1" data-day="3" data-row="from"> <td class="hours" data-person="1" data-day="4" data-row="from"> <td class="hours" data-person="1" data-day="5" data-row="from"> <td class="hours specialday" data-person="1" data-day="6" data-row="from"> <td class="hours specialday" data-person="1" data-day="7" data-row="from"> <td class="hours" data-person="1" data-day="8" data-row="from"> <td class="hours wc-today" data-person="1" data-day="9" data-row="from"> <td class="hours" data-person="1" data-day="10" data-row="from"> <td class="hours" data-person="1" data-day="11" data-row="from"> <td class="hours" data-person="1" data-day="12" data-row="from"> <td class="hours specialday" data-person="1" data-day="13" data-row="from"> <td class="hours specialday" data-person="1" data-day="14" data-row="from"> <td class="hours" data-person="1" data-day="15" data-row="from"> <td class="hours" data-person="1" data-day="16" data-row="from"> <td class="hours" data-person="1" data-day="17" data-row="from"> <td class="hours" data-person="1" data-day="18" data-row="from"> <td class="hours" data-person="1" data-day="19" data-row="from"> <td class="hours specialday" data-person="1" data-day="20" data-row="from"> <td class="hours specialday" data-person="1" data-day="21" data-row="from"> </tr> <tr> <td class="row_header">tot</td> <td class="hours" data-person="1" data-day="1" data-row="till"> <td class="hours" data-person="1" data-day="2" data-row="till"> <td class="hours" data-person="1" data-day="3" data-row="till"> <td class="hours" data-person="1" data-day="4" data-row="till"> <td class="hours" data-person="1" data-day="5" data-row="till"> <td class="hours specialday" data-person="1" data-day="6" data-row="till"> <td class="hours specialday" data-person="1" data-day="7" data-row="till"> <td class="hours" data-person="1" data-day="8" data-row="till"> <td class="hours wc-today" data-person="1" data-day="9" data-row="till"> <td class="hours" data-person="1" data-day="10" data-row="till"> <td class="hours" data-person="1" data-day="11" data-row="till"> <td class="hours" data-person="1" data-day="12" data-row="till"> <td class="hours specialday" data-person="1" data-day="13" data-row="till"> <td class="hours specialday" data-person="1" data-day="14" data-row="till"> <td class="hours" data-person="1" data-day="15" data-row="till"> <td class="hours" data-person="1" data-day="16" data-row="till"> <td class="hours" data-person="1" data-day="17" data-row="till"> <td class="hours" data-person="1" data-day="18" data-row="till"> <td class="hours" data-person="1" data-day="19" data-row="till"> <td class="hours specialday" data-person="1" data-day="20" data-row="till"> <td class="hours specialday" data-person="1" data-day="21" data-row="till"> </tr> <tr> </tbody> <tbody> <tbody> <tbody> </table>
edit
maybe should explain i'm trying do. black line see on left border given tbody. want line having width of table, border gets overriden border of td's. maybe other solutions?
css
[data-person] { border:1px solid #dedede; } tbody tr:first-child td { background-color:yellow; }
solved
i had override problem td's. realized after posted question, thx help
thanks in advance
Comments
Post a Comment