Answers for "change color placeholder textinput"

8

text input placeholder color react native

<TextInput
   placeholder="something"
   placeholderTextColor="#000" 
/>
// By Ray: https://stackoverflow.com/a/44739397
Posted by: Guest on July-28-2021
0

Change a HTML5 input's placeholder color with CSS

/* do not group these rules */
*::-webkit-input-placeholder {
    color: red;
}
*:-moz-placeholder {
    /* FF 4-18 */
    color: red;
    opacity: 1;
}
*::-moz-placeholder {
    /* FF 19+ */
    color: red;
    opacity: 1;
}
*:-ms-input-placeholder {
    /* IE 10+ */
    color: red;
}
*::-ms-input-placeholder {
    /* Microsoft Edge */
    color: red;
}
*::placeholder {
    /* modern browser */
    color: red;
}
<input placeholder="hello"/> <br />
<textarea placeholder="hello"></textarea>
Posted by: Guest on March-07-2022

Code answers related to "change color placeholder textinput"

Code answers related to "Javascript"

Browse Popular Code Answers by Language