Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set size of font used to display SELECT options 1

Status
Not open for further replies.

Richly

Programmer
May 24, 2008
2
US
I want the font used to display the options of a SELECT to be the same size as the text in front of them and haven't been able to find anything that does this across browsers.

Using IE, I can set the size of the font by
<select style="font-size=32" ...>
but both Firefox and Safari appear to ignore the font-size.

More details:
The select is buried inside a parent form, something like this:
<form><font size="+5"><b>Pick Number
<form action="#" method="get">
<select style="font-size=32" name="PN" onChange=getN(value)>
<option value="1"> 1</option>
<option value="2"> 2</option>
</select>
</form>
</b></font></form>

Any suggestions for getting the options (1, 2) to be as big as the enlarged bold "Pick Number"?

Thanks,
Richly

 
Inline style font-size setting goes like this:
[tt]style="font-size[red]:[/red]32[blue]px;[/blue]"[/tt]
(colon, not equal; preferrably with unit).
 
Thanks. That makes it work in IE and Firefox. Apple's Safari, at least version 3.1.1 on Windows, doesn't honor the font-size.

- Richard

P.S. I figured out (with a little googling around) that
style="font-size:36; font-weight:bold;"
gives both large size and bold characters.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top