Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > change font in drop-down list?

Reply
Thread Tools

change font in drop-down list?

 
 
Loane Sharp
Guest
Posts: n/a
 
      09-24-2004
Hi there

Is there any way to change the font (family, size, etc.) from the default
(apparently Arial 12pt regular) in a drop-down list created using the
<OPTION></OPTION> tags?

Best regards
Loane


 
Reply With Quote
 
 
 
 
Dan Abrey
Guest
Posts: n/a
 
      09-24-2004

"Loane Sharp" <> wrote in message
news:cj1tns$kep$...
> Hi there
>
> Is there any way to change the font (family, size, etc.) from the default
> (apparently Arial 12pt regular) in a drop-down list created using the
> <OPTION></OPTION> tags?
>
> Best regards
> Loane
>
>


Yes, use CSS and the 'select' selector. i.e.:

select {
font-family: Verdana, Arial, sans-serif;
font-size: 0.8em;
}

Dan


 
Reply With Quote
 
 
 
 
Neal
Guest
Posts: n/a
 
      09-25-2004
On Fri, 24 Sep 2004 22:55:41 +0100, Dan Abrey <> wrote:

>
> "Loane Sharp" <> wrote in message
> news:cj1tns$kep$...
>> Hi there
>>
>> Is there any way to change the font (family, size, etc.) from the
>> default
>> (apparently Arial 12pt regular) in a drop-down list created using the
>> <OPTION></OPTION> tags?
>>
>> Best regards
>> Loane
>>
>>

>
> Yes, use CSS and the 'select' selector. i.e.:
>
> select {
> font-family: Verdana, Arial, sans-serif;
> font-size: 0.8em;
> }


But if you have set body font-size, and to anything but 100%, this will
couse problems. I'd recommend using percents here. 0.8em is equivalent to
80%.

Be aware also that sizes below 100% might not be readable. Take the risk
if you dare. I'd never take the risk with a form element.
 
Reply With Quote
 
Karl Groves
Guest
Posts: n/a
 
      09-27-2004

"Loane Sharp" <> wrote in message
news:cj1tns$kep$...
> Hi there
>
> Is there any way to change the font (family, size, etc.) from the default
> (apparently Arial 12pt regular) in a drop-down list created using the
> <OPTION></OPTION> tags?


Lemme guess. You have an absurdly long dropdown menu and you think that
making the text smaller will help your problem?

-Karl


 
Reply With Quote
 
Dan Abrey
Guest
Posts: n/a
 
      09-27-2004

"Karl Groves" <> wrote in message
news:cj9k64$eei$...
>
> "Loane Sharp" <> wrote in message
> news:cj1tns$kep$...
> > Hi there
> >
> > Is there any way to change the font (family, size, etc.) from the

default
> > (apparently Arial 12pt regular) in a drop-down list created using the
> > <OPTION></OPTION> tags?

>
> Lemme guess. You have an absurdly long dropdown menu and you think that
> making the text smaller will help your problem?


Yeah, because thats what he said isn't it? Bloody elitist usenet.
Assumptions get you nowhere.


 
Reply With Quote
 
Neal
Guest
Posts: n/a
 
      09-27-2004
On Mon, 27 Sep 2004 19:08:05 +0100, Dan Abrey <> wrote:

>
> "Karl Groves" <> wrote in message
> news:cj9k64$eei$...
>> Lemme guess. You have an absurdly long dropdown menu and you think that
>> making the text smaller will help your problem?

>
> Yeah, because thats what he said isn't it?


If it was what he said, it wouldn't be a guess.

> Bloody elitist usenet.


Oh, pooh. You get what you pay for.

> Assumptions get you nowhere.


Providing details gets you better replies. Rather than answer help
questions in a vacuum, we prefer discussion of the overall scenario. The
answers which then arrive are far more relevant.

 
Reply With Quote
 
Karl Groves
Guest
Posts: n/a
 
      09-27-2004

"Dan Abrey" <> wrote in message
news:cj9kuh$im6$...
>
> "Karl Groves" <> wrote in message
> news:cj9k64$eei$...


>> Lemme guess. You have an absurdly long dropdown menu and you think that
>> making the text smaller will help your problem?

>
> Yeah, because thats what he said isn't it? Bloody elitist usenet.
> Assumptions get you nowhere.


Lemme guess - it is the first time you've ever seen someone ask that
question?
It isn't for me.

-Karl



 
Reply With Quote
 
Dan Abrey
Guest
Posts: n/a
 
      09-27-2004

"Karl Groves" <> wrote in message
news:cj9ocu$io4$...
>
> "Dan Abrey" <> wrote in message
> news:cj9kuh$im6$...
> >
> > "Karl Groves" <> wrote in message
> > news:cj9k64$eei$...

>
> >> Lemme guess. You have an absurdly long dropdown menu and you think that
> >> making the text smaller will help your problem?

> >
> > Yeah, because thats what he said isn't it? Bloody elitist usenet.
> > Assumptions get you nowhere.

>
> Lemme guess - it is the first time you've ever seen someone ask that
> question?
> It isn't for me.


Nor me, but if youre sick of answering a specific question, don't reply.


 
Reply With Quote
 
Karl Groves
Guest
Posts: n/a
 
      09-27-2004

"Dan Abrey" <> wrote in message
news:cj9stn$ts0$...
>
> "Karl Groves" <> wrote in message
> news:cj9ocu$io4$...
>>
>> Lemme guess - it is the first time you've ever seen someone ask that
>> question?
>> It isn't for me.

>
> Nor me, but if youre sick of answering a specific question, don't reply.
>


I'll reply to whoever I want to and in whichever fashion I want to.
If you do not like it, killfile me.

-Karl


 
Reply With Quote
 
Dan Abrey
Guest
Posts: n/a
 
      09-27-2004

"Karl Groves" <> wrote in message
news:cj9v50$r11$...
>
> "Dan Abrey" <> wrote in message
> news:cj9stn$ts0$...
> >
> > "Karl Groves" <> wrote in message
> > news:cj9ocu$io4$...
> >>
> >> Lemme guess - it is the first time you've ever seen someone ask that
> >> question?
> >> It isn't for me.

> >
> > Nor me, but if youre sick of answering a specific question, don't reply.
> >

>
> I'll reply to whoever I want to and in whichever fashion I want to.
> If you do not like it, killfile me.


Thats a very aggressive reply to a pretty logical answer. Its just beyong me
replying to a post on Usenet just to almost patronize the OP. I never said I
didnt like you, I've never met you.


 
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
How to get the text in html tag.like<div...><font...>Text</font></ =?Utf-8?B?Tmlja3k=?= ASP .Net 2 02-20-2005 03:03 PM
Font class, external font files question Karl Hungus ASP .Net 1 02-04-2004 04:26 PM
JavaRE 1.4.2 font alias in /lib/font.properties (Linux) Nick Spinel Java 0 07-25-2003 08:28 AM
physical font specified but true type font file not available Michael Glavitsch Java 1 07-15-2003 07:09 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