I tried the following with the stylesheet and <input/>
yet the color of the placeholder still has not changed and stays at the default color. Am I doing it incorrectly?
my css stylesheet:
#input-field {
background-color: rgba(255,255,255,0.1);
border: 0;
border-radius: 5px;
width: 150px;
height: 40px;
padding: 12px;
box-shadow: none;
color: rgba(255,255,255,0.8);
}
:-webkit-input-placeholder { /* WebKit, Blink, Edge */
color: blue;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: blue;
opacity: 1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
color: blue;
opacity: 1;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: blue;
}
And my <input/>
:
<input
className="form-control"
id="input-field"
placeholder='Change This Color'
/>