The following CSS used to work in all browsers that I have tested. It even has an option selector to handle Firefox.
select,
option {
font-family: "Lucida Console", Monaco, monospace;
}
<select>
<option>PN-2345 The first element Hardware</option>
<option>Pn-1332-CFG Second thing Powdercoat</option>
</select>
The newest versions of Firefox no longer properly apply font family styles. Former versions of Firefox, and every other major browser I've tested, fully apply the font family settings both to the select and to the items in the dropdown - now, it only gets applied to the select box itself, but NOT the dropdown.
Does Firefox still support font-family changes to dropdowns? If so, how?
Select Options from the menu. On the Firefox settings page, scroll down to the Language and Appearance section. Select the Advanced button to open the Fonts window. To override fonts that may have been set by a website, untick the box labelled Allow pages to choose their own fonts, instead of your selections above.
Open Firefox and click the three-bar Settings icon. Select "Options." 2. In the "Content" tab you can make changes to font and languages.
You can set the font for both the select and option elements in Firefox using:
select, option {
font: -moz-pull-down-menu;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With