DropDown Box

  • Thread starter Thread starter C_Silin
  • Start date Start date
C

C_Silin

What is the trick to getting the size of the font of a drop down box to
change? I put the following style sheet in the HTML:

<style type="text/css">
.txtBoxes { FONT-SIZE: x-small; HEIGHT: 19px }
</style>

Then with the drop Down box, I did the following...

<asp:dropdownlist id="drpLastNames" runat="server" AutoPostBack="True"
CssClass="txtBoxes"></asp:dropdownlist></P>

But this has no effect of altering the size of the font of the items in the
drop down box. How can this be done?

Thanks in advance for your assistance!!!!!!!
 
It probably does not appear different since you are using a specific
font-size (x-small). Try using "Larger" or "Smaller" and remove the
Height property. For example:

<style type="text/css">
..txtBoxes { FONT-SIZE: larger; }
</style>

This had a noticeable effect.

Darrell
http://dotnetjunkies.com/WebLog/darrell.norton/
 
Back
Top