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/
 

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

Back
Top