CheckBoxList: CSS Selector for <LABEL FOR ... > ?

T

timo

I'd like to style the label for all of the check boxes in a
CheckBoxList. What is the CSS selector for LABEL FOR nested inside a
table cell, associated with an INPUT? I've shown how the HTML is
rendered below.

Thanks

<div>
..
..
..

<table id="GradesList" border="0">
<tr>
<td>
<input id="GradesList_0" type="checkbox" name="GradesList:0"
onclick="javascript:setTimeout('__doPostBack(\'GradesList$0\',\'\')',
0)" language="javascript" />
<label for="GradesList_0">WHAT IS MY CSS SELECTOR?</label>
</td>
</tr>
</table>
..
..
..
</div>
 
B

bruce barker

/* any label in a td in a table */

..table td label {...}

/* all labels in table with id */

#GradesList label {...}

-- bruce (sqlwork.com)
 

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

Top