• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Select menu font size, how do you reduce it?

robbirobot

Lurker
Sep 14, 2012
1
0
Hi there, I'm making a web app at the moment. I have a jquery select menu which displays items on my Huawei phone in large text, is there a way to reduce this text.

I tried this css, but it didn't work:

select {
font-size: 10px !important;
}

and here's the select menu mark up:
<form name="menu" method="get" action="#">
<p><select name="programmes" onChange="splitValues(this)" data-mini="true">
<option>Select Your Program</option>
<option value="0">BEng(Hons) Electronic Engineering
 
I see what you are trying to do with the CSS all you are missing is the style tag.

<style type="text/css">
select {
font-size: 10px !important;
}
</style>

go here to test it out, just copy and pate your code, and then try adding the style tag and you will see it works.

Tryit Editor v1.5

Without the style tag it does not recognize that it is css so the device will read it as just a string and output accordingly

Hope this helps :)
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones