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

  • Thread starter Thread starter timo
  • Start date Start date
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>
 
/* any label in a td in a table */

..table td label {...}

/* all labels in table with id */

#GradesList label {...}

-- bruce (sqlwork.com)
 
Back
Top