Chad Devine said:
That's strange, it works fine in my asp.net page.
Here's my code... make sure you don't have any style sheets that are
over riding these font size preferences. Since, I have had problems
with that in the past.
<asp
ropDownList
ID="dropListOptions"
AutoPostBack="True"
OnSelectedIndexChanged="dropListOptions_SelectedIndexChanged"
font-size="20"
Runat="Server" >
<asp:ListItem id="Default" Text="Default" Value="25" />
<asp:ListItem Text="50" Value="50" />
<asp:ListItem Text="75" Value="75" />
<asp:ListItem Text="100" Value="100" />
</asp
ropDownList>
With that at 20 it makes the text huge, and rather annoying, but it
definately works. You should check around in your code, or elsewhere
and make sure something's not effecting that font-size.
Something might be.
I will check it out.
But here is my code (part of it which is a datalist):
*****************************************************
<EditItemTemplate>
<table border="1" width="100%" CellPadding="0" CellSpacing="0"
style="margin:0">
<tr>
<td>
<asp:ImageButton ID="ExpandButton" runat="server" Font-Size="2"
ImageUrl="../images/expand.gif" Width="16" Height="16" CommandName="Select"
AlternateText="Click here to see details"></asp:ImageButton>
</td>
<td>
<asp:ImageButton ID="CollapseButton" visible="false"
runat="server" Font-Size="2" ImageUrl="../images/collapse.gif" Width="16"
Height="16" CommandName="Select" AlternateText="Click here to see
details"></asp:ImageButton>
<asp:label id="PositionID" Visible="false" runat="server"
Text='<%# DataBinder.Eval(Container.DataItem, "PositionID") %>' />
<asp:label id="QuestionUnique" Visible="false" runat="server"
Text='<%# DataBinder.Eval(Container.DataItem, "QuestionUnique") %>' />
</td>
<td>
<asp:label id="QuestionType" Visible="false" runat="server"
Text='<%# DataBinder.Eval(Container.DataItem, "QuestionType") %>' />
</td>
<td>
<asp
ropDownList ID="ddlQuestionType" font-size="30"
SelectedValue='<%# DataBinder.Eval(Container.DataItem, "QuestionType") %>'
runat="server" >
<asp:ListItem Value="MS" Text="Multiple Single" />
<asp:ListItem Value="MM" Text="Multiple Multiple" />
<asp:ListItem Value="TF" Text="True/False" />
</asp
ropDownList>
</td>
***********************************************************************************
Here is the rendered code:
********************************************************************************
<td>
<input type="image" name="DataList1:_ctl0:ExpandButton"
id="DataList1__ctl0_ExpandButton" src="../images/expand.gif" alt="Click here
to see details" border="0" />
</td>
<td>
</td>
<td>
</td>
<td>
<select name="DataList1:_ctl0:ddlQuestionType"
id="DataList1__ctl0_ddlQuestionType">
<option value="MS">Multiple Single</option>
<option selected="selected" value="MM">Multiple Multiple</option>
<option value="TF">True/False</option>
</select>
********************************************************************************
As you can see there is no size begin set on the select statement. Some of
the asp.net objects are not there as they are not visible.
Thanks,
Tom