Hello Teemu,
If it was that easy I would have figured it out already but this control was
written by somebody evil.
The ListItems render as Label controls instead of text and as such they
properties are not accessible.
The ListItem is limited and only supports Enabled, Selected, Text and Value
properties. We can't use a SkinID or CSS directly on the label text but I
have found a hack that probably breaks XHTML validity...
// CheckBoxList ListItem Style Hack
<asp:ListItem Value="<span class='SkipDays'>Sunday</span>" />
Even this hack does not for some reason allow me to modify padding or
margins of the text and I don't know if it is going to affect getting the
values of the checked items yet.
In this case I need to collect one or more days of the week and if I use
this hack the collection returned may not be Sunday, Monday, Thursday but
<span class='SkipDays'>Sunday</span><span
class='SkipDays'>Monday</span><span class='SkipDays'>Thursday</span>
<%= Clinton Gallagher
"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:uS**************@TK2MSFTNGP15.phx.gbl...
Hi,
you need to check how it renders itself at client (probably with a <span>
if memory serves). Then you could had styles(heets) targeting that.
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:ul*************@TK2MSFTNGP12.phx.gbl... Has anybody figured out how to style this doohickey? I want to move the
label's text properties up so the text lines up with the checkbox itself.
<%= Clinton Gallagher