How to change the colour of Placeholder in CSS
xxxxxxxxxx
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
color: red;
opacity: 1; /* Firefox */
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: red;
}
::-ms-input-placeholder { /* Microsoft Edge */
color: red;
Code by --Anshul Soni
Visit my website at https://anshulsoni.tech
xxxxxxxxxx
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
color: red;
opacity: 1; /* Firefox */
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: red;
}
::-ms-input-placeholder { /* Microsoft Edge */
color: red;
}
xxxxxxxxxx
/* Target the placeholder selector of an input element */
::placeholder {
color: red; /* Change the color to desired value */
}
/* Optional styling for specific input element */
input[type="text"]::placeholder {
font-style: italic;
}