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.
 
Back
Top