[Solved] How to change font size inside option of a select box if it has number?


Yo cant individually style elements in options. This element is rendered by the OS, not HTML. It cannot be styled via CSS. There are replacement plug-ins that look like a SELECT, but are actually composed from regular HTML elements that CAN be styled.

Use instead

https://github.com/HubSpot/select

or

https://select2.org/

solved How to change font size inside option of a select box if it has number?