I have a select control in my project. I want to use this control to system fonts. How can I do it?
I searched but don't find any thing about HTML select.
<select id="Select1">
<option></option>
</select>
I have a select control in my project. I want to use this control to system fonts. How can I do it?
I searched but don't find any thing about HTML select.
<select id="Select1">
<option></option>
</select>
You'll need to target the select with CSS to change the font. In your CSS:
select {
font-family: your-font-choice, your-second-choice, your-third-choice;
}
The caveat being that the only font change the will be visible is the default/selected option. When you click the dropdown button, the menu that shows all your options will have a font set by the browser, which you can't change for the most part. The alternative is to use a javascript built custom select input that will allow you to style everything.