/    Sign up×
Community /Pin to ProfileBookmark

How to change font type and size in select element

Can anyone suggest how to change font type and size in a select element?

Google has failed me, unless I’m just too thick to find it in the results.

to post a comment
CSS

6 Comments(s)

Copy linkTweet thisAlerts:
@thewebmanJan 03.2006 — I don't believe that's possible. you change the color, but not the font type or size.
Copy linkTweet thisAlerts:
@scaiferwauthorJan 03.2006 — I was afraid of that. Tried everything I could think of.
Copy linkTweet thisAlerts:
@UbikJan 03.2006 — css:

select

{

font-family: arial, sans-serif;

font-size: 18pt;

font-weight: bold;

}
Copy linkTweet thisAlerts:
@scaiferwauthorJan 03.2006 — css:

select

{

font-family: arial, sans-serif;

font-size: 18pt;

font-weight: bold;

}[/QUOTE]


Thanks, I had just come back to post that solution. I don't know why I couldn't do it before, must have been a conflicting setting.

Thanks for the input.

I would only add for the sake of those who come across this thread that I would use this very sparingly, forms tweaked this way could become quite ugly. In the current situation I have to narrow the form because some of the elements in the lists are quite lengthy and I have limited space to work in. However, forms should generaly look and behave the way users are accustomed to. FWIW.

Cheers,

Rob
Copy linkTweet thisAlerts:
@UbikJan 05.2006 — FWIW, I do a lot of 'user can tell what's going on' with background colors and font colors, such as when I have a trouble-ticketing system, they can instantly tell what kind of severity to assign the ticket, if the option elements are different colors:

[B]

Select the severity of this ticket:

[COLOR=Red]Sev 1 - Critical[/COLOR]

[COLOR=Yellow]Sev 2 - Non-Functioning[/COLOR]

[COLOR=Orange]Sev 3 - WorkaroundOk[/COLOR]

[COLOR=SeaGreen]Sev 4 - LikeToHave[/COLOR]

[/B]


I have the backgrounds set to darker colors so that they can be read easily, I think you get the idea.
Copy linkTweet thisAlerts:
@scaiferwauthorJan 05.2006 — FWIW, I do a lot of 'user can tell what's going on' with background colors and font colors, such as when I have a trouble-ticketing system, ....

I have the backgrounds set to darker colors so that they can be read easily, I think you get the idea.[/QUOTE]

Exactly what I'm doing with these droplists; When a droplist has anything other than the default it has a blue background, so it's clear which droplists are active and which are not.
×

Success!

Help @scaiferw spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...