I'm trying to create input fields with fully opaque placeholder
text
<input type="text" placeholder="Enter your name here" />
Even though I've applied CSS properties to fix the transparency in Firefox, the text still appears translucent on iPhone and Android browsers
This is the CSS I have been using:
::-webkit-input-placeholder { /* WebKit browsers */
opacity: 0.8;
-webkit-opacity:0.8;
-khtml-opacity: 0.8;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
opacity: 0.8;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
opacity: 0.8;
}
Does anyone know how to make the placeholder
text completely opaque for Android and iPhone browsers?