Css & Listitem


A

anony

Hi,

I'm trying to apply a style class to listitems, without success. I've tried
wrapping the RadioButtonList and ListItems around a div or span without
success. The CssClass attribute for the RadioButtonList does nothing.
Applying the class to my <td> doesn't work either. What am I doing wrong?

Thanks.


<td width="62%">

<asp:RadioButtonList ID="radlRetrieve" runat="server"
TextAlign="right" AutoPostBack="true" CssClass="main"
OnSelectedIndexChanged="radlRetrieve_Changed" >
<asp:ListItem Value="0" Text="Username" ></asp:ListItem>
<asp:ListItem Value="1" Text="Password"></asp:ListItem>
</asp:RadioButtonList>

</td>
 
Ad

Advertisements

G

Guest

hi,
It should work. check if you have a "." before main in the stylesheet. Like
the classname should be .main{}.
HTH
srini
 
Ad

Advertisements

A

anony

Thanks, but the stylesheet itself isn't the problem. I'm able to use the
class elsewhere.
 

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