Is it posible for an input field to have one font-family
and it's placeholder another?
I have tried to change font-family
for the input's placeholder with an already defined @font-face
in CSS but it's not working:
CSS
.mainLoginInput::-webkit-input-placeholder {
font-family: 'myFont', Arial, Helvetica, sans-serif;
}
.mainLoginInput:-moz-placeholder {
font-family: 'myFont', Arial, Helvetica, sans-serif;
}
HTML
<input class="mainLoginInput" type="text" placeholder="Username" />
How can I solve this problem?
::-ms-input-placeholder
if you support IE 10. – Kerriekerrigan