Jump to content

Selecting children of multiple table rows

Recommended Posts

Without assigning a class to each <td> I'd like to style, is there a selector or expression I can use to select the 2nd child of all <tr> in a table within a unique div?



<div id="wines">  <h3 class="category">Cabernet</h3>  <table>    <colgroup>      <col class="wine-name" />      <col class="wine-price" />    </colgroup>    <tr>      <td><span class="i">California Canyon Road</span></td>      <td><span class="cushycms" id="California Canyon Road">$5.50 / $20</span></td><!-- I want to select only this <td> -->    </tr>  </table></div>


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...