Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > CheckBoxList: CSS Selector for <LABEL FOR ... > ?

Reply
Thread Tools

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

 
 
timo
Guest
Posts: n/a
 
      03-09-2009
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(\'Gra desList$0\',\'\')',
0)" language="javascript" />
<label for="GradesList_0">WHAT IS MY CSS SELECTOR?</label>
</td>
</tr>
</table>
..
..
..
</div>
 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      03-10-2009
/* any label in a td in a table */

..table td label {...}

/* all labels in table with id */

#GradesList label {...}

-- bruce (sqlwork.com)

timo wrote:
> 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(\'Gra desList$0\',\'\')',
> 0)" language="javascript" />
> <label for="GradesList_0">WHAT IS MY CSS SELECTOR?</label>
> </td>
> </tr>
> </table>
> .
> .
> .
> </div>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any equivalent to Ruby's 'hpricot' html/xpath/css selector package? Kenneth McDonald Python 6 12-30-2008 01:38 PM
css selector rodchar ASP .Net 2 04-03-2008 04:04 PM
css selector as alias of another JakDaniel HTML 3 03-31-2007 10:26 PM
Proper order for settings to CSS border selector joshbeall@gmail.com HTML 9 07-23-2006 12:58 PM
CSS child selector -> alternative in JavaScript www.raph.nl HTML 0 10-03-2003 07:25 PM



Advertisments