I want to set the color to the placeholder, change the font style to bold, and increase the size.
How can I achieve this? Should I give style to the placeholder, or is t
You can use the following code for cross-browser support:
For Google Chrome:
.element::-webkit-input-placeholder {
color: blue;
font-weight: bold;
}
For Mozilla Firefox:
.element::-moz-placeholder {
color: blue;
font-weight: bold;
}
For Internet Explorer:
.element:-ms-input-placeholder {
color: blue;
font-weight: bold;
}
For Opera:
.element:-o-input-placeholder {
color: blue;
font-weight: bold;
}