vane
vane

Reputation: 109

How to modify the style of "select" in html

I want to use some font in "select" like this:

<select style="font-family:Coming Soon;font-size:18px;">

The test result like this:

IE11 and firefox

In firefox and IE11, it looks right. However, in chrome and safari:

chrome and safari

Can you tell me what's wrong please?

Upvotes: 0

Views: 75

Answers (1)

Adarsh Nair
Adarsh Nair

Reputation: 390

Hope you're using google fonts to style the select items. If so, then you'll have to add the link as http://fonts.googleapis.com/css?family=Coming+Soon' rel='stylesheet' type='text/css'> inside and then apply font-family style to the select item.

Upvotes: 1

Related Questions