Reputation: 462
I have a form with a textfield and a textarea and both of them have a placeholder. But the font style of the placeholder is different as compared to the textfield and textarea. Please show me how to keep the same font style.
<form>
<input type="text" placeholder="just for testing the style">
<textarea placeholder="just for testing the style"></textarea>
</form>
Upvotes: 1
Views: 3666
Reputation: 1584
You need to set them to the same font family in the CSS:
textarea,
input[type=text] {
font-family:Arial;
}
Upvotes: 2