0
Can you answer this?
How we can change the color of placeholder of html in CSS? Tell the solution of this problem.
5 odpowiedzi
+ 2
Sure mate
You need the pseudo selector ::placeholder
Example:
::placeholder {
color: grey;
}
For crossbrowser functionality use the webkits
Edge:
::-webkit-input-placeholder {
color: grey;
}
IE 11:
:-ms-input-placeholder {
color: grey;
}
+ 2
+ 1
Placeholdee is used to describe what should the user input in textbox or textarea then if u want to change the color u should change the style of each of them like this
textbox{
Color:red ;
}
put this code in css page
+ 1
you're welcome Dipesh
0
::placeholder {
color: yourColor;
opacity: 1;
}