css selectors help

  • Thread starter Thread starter rodchar
  • Start date Start date
R

rodchar

hey all,
can someone please show me how to select and the only the first cell of the
first row

i thought it would be something like:

#tableId > tr > td

thanks,
rodchar
 
">" means any child (vs descendant), so it should select all td's under
#tableId

you probably want:

#tableId + tr + td




-- bruce (sqlwork.com)
 
hey all,
can someone please show me how to select and the only the first cell of the
first row

i thought it would be something like:

#tableId > tr > td

thanks,
rodchar

give <tr> some id like < tr id="test"> and get its first child, your
required td w'd be first or zeroth indexed child in case of IE and
first or indexed 1 in case of Firefox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top