Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DropDownList font size in ASP 2.0 - I can't change it

Reply
Thread Tools

DropDownList font size in ASP 2.0 - I can't change it

 
 
lawrence.farrell@gmail.com
Guest
Posts: n/a
 
      04-08-2006
I am working with a dynamic DropDownList. It is being created in my VB
code-beside. I applied a css class to it to resize the font and
nothing changed. I then removed that css class and instead set the
ddl.font.size to a number. That doesn't change anything. The font
stays the same size no matter what number I use. Am I using the wrong
property? Why would the css style do anything? Any help would be
greatly appreciated

_
_
ddlSearchValues = New DropDownList()
ddlSearchValues.Width = 180
ddlSearchValues.Font.Size = 4
_
_


Thank you,
--Larry--

 
Reply With Quote
 
 
 
 
OHM \( One Handed Man \)
Guest
Posts: n/a
 
      04-08-2006
First of all a few questions.

1.) Have you tried this class on a static control and observed that the
class is making the correct font application ?
2.) If in 1 both questions are true. Have you checked to see if the spelling
of your class is correct ( BTW dont include the dot which preceeds the
classname.
3.) If all of the above are true, then have you looked at the code that the
page renders and observed your class attribute has been applied correctly <
.. . . class="yourClassName" . . . ? You can do this by right clicking
over the page and choosing View Source.

Hope these questions put you on the right track !

--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net



<> wrote in message
news: ups.com...
>I am working with a dynamic DropDownList. It is being created in my VB
> code-beside. I applied a css class to it to resize the font and
> nothing changed. I then removed that css class and instead set the
> ddl.font.size to a number. That doesn't change anything. The font
> stays the same size no matter what number I use. Am I using the wrong
> property? Why would the css style do anything? Any help would be
> greatly appreciated
>
> _
> _
> ddlSearchValues = New DropDownList()
> ddlSearchValues.Width = 180
> ddlSearchValues.Font.Size = 4
> _
> _
>
>
> Thank you,
> --Larry--
>



 
Reply With Quote
 
 
 
 
clintonG
Guest
Posts: n/a
 
      04-09-2006
4) Are you using Themes?


<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/


"OHM ( One Handed Man )" <> wrote in message
news:...
> First of all a few questions.
>
> 1.) Have you tried this class on a static control and observed that the
> class is making the correct font application ?
> 2.) If in 1 both questions are true. Have you checked to see if the
> spelling of your class is correct ( BTW dont include the dot which
> preceeds the classname.
> 3.) If all of the above are true, then have you looked at the code that
> the page renders and observed your class attribute has been applied
> correctly < . . . class="yourClassName" . . . ? You can do this by
> right clicking over the page and choosing View Source.
>
> Hope these questions put you on the right track !
>
> --
> ( OHM ) - One Handed Man
> AKA Terry Burns - http://TrainingOn.net
>
>
>
> <> wrote in message
> news: ups.com...
>>I am working with a dynamic DropDownList. It is being created in my VB
>> code-beside. I applied a css class to it to resize the font and
>> nothing changed. I then removed that css class and instead set the
>> ddl.font.size to a number. That doesn't change anything. The font
>> stays the same size no matter what number I use. Am I using the wrong
>> property? Why would the css style do anything? Any help would be
>> greatly appreciated
>>
>> _
>> _
>> ddlSearchValues = New DropDownList()
>> ddlSearchValues.Width = 180
>> ddlSearchValues.Font.Size = 4
>> _
>> _
>>
>>
>> Thank you,
>> --Larry--
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Swing Font, it's Java Font? ot native? how install new font? mttc Java 2 07-03-2009 07:29 PM
Printing with specific font-type and font-size wial Java 2 11-27-2008 05:30 PM
Firefox - Prevent TextField size change when user changes font size? Wongod HTML 2 10-04-2006 12:26 PM
Windows XP explorer font and font size Lookout Computer Support 0 06-04-2006 02:58 AM
Selecting font size based on available font dave richards HTML 2 02-19-2004 02:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57