0

Can you answer this?

How we can change the color of placeholder of html in CSS? Tell the solution of this problem.

7th Jun 2020, 2:14 PM
Dipesh
Dipesh - avatar
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; }
7th Jun 2020, 2:22 PM
HNNX 🐿
HNNX 🐿 - avatar
7th Jun 2020, 2:35 PM
Dipesh
Dipesh - avatar
+ 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
7th Jun 2020, 2:24 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 1
you're welcome Dipesh
7th Jun 2020, 2:37 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
0
::placeholder {    color: yourColor;   opacity: 1;  }
7th Jun 2020, 2:22 PM
Hardik Sharma
Hardik Sharma - avatar