css selectors help

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
 
B

bruce barker

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

you probably want:

#tableId + tr + td




-- bruce (sqlwork.com)
 
C

CreativeMind

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

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top