Hello,
I am trying to enlarge the font-size of an ASP:ListItem object using CSS. I have tried a few different ways - but it is not rendering. Any ideas on what would cause the ListItem to not pick up the CSS?
First try: CSSClass="radioButtonList" under asp:RadioButtonList
<style type="text/css">
.radioButtonList
{
font-size:10em;
}
.indenting
{
padding-left: 40px;
}
</style>
<asp:RadioButtonList ID="RequestOptions" CSSClass="radioButtonList" runat="server">
<asp:ListItem Value="0">Hello World<br/><span class="indenting">World</span></asp:ListItem>
<asp:ListItem Value="1">Hello Again<br/><span class="indenting">Again</span></asp:ListItem>
</asp:RadioButtonList>
Second try: CSSClass="radioButtonList" under asp:ListItem
<style type="text/css">
.radioButtonList
{
font-size:10em;
}
.indenting
{
padding-left: 40px;
}
</style>
<asp:RadioButtonList ID="RequestOptions" runat="server">
<asp:ListItem Value="0" CSSClass="radioButtonList">Hello World<br/><span class="indenting">World</span></asp:ListItem>
<asp:ListItem Value="1" CSSClass="radioButtonList">Hello Again<br/><span class="indenting">Again</span></asp:ListItem>
</asp:RadioButtonList>
A few thoughts...
Is CSSClass an allowed attribute of ListItem? When not used in conjunction with Sharepoint, what is the normal way to change the layout of individual ListItems? Could Sharepoint be causing this error?
Thanks,
Brittany