Jump to content
knystrom18

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?

 

Example:

<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>

Thanks.

Share this post


Link to post
Share on other sites

Awesome. I've used that before and completely forgot about it, oh well. :facepalm: Thank you.

Edited by Coaxsist

Share this post


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.

Guest
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.

Loading...

×
×
  • Create New...