I am using custom fonts (@font-face), and they show up properly on my entirely application except on input placeholders.
The font is not showing up and the placeholder is blank.
The input font (when I type something) is working fine. Also, if I change the placeholder font for a system font (Arial, Tahoma...) it works too.
How can I use custom fonts for the placeholder?
Input:
<input placeholder="Search character" type="text" class="search-character">
CSS:
body { font-family: 'DIN', sans-serif; }
.search-character::-webkit-input-placeholder { /* Chrome/Opera/Safari */
font-family: 'DIN', sans-serif;
}
.search-character::-moz-placeholder { /* Firefox 19+ */
font-family: 'DIN', sans-serif;
}
.search-character:-ms-input-placeholder { /* IE 10+ */
font-family: 'DIN', sans-serif;
}
.search-character:-moz-placeholder { /* Firefox 18- */
font-family: 'DIN', sans-serif;
}
.search-character::placeholder {
font-family: 'DIN', sans-serif;
}