If you want to change input text placeholder color, follow these code
Put these code under <style> tag.
::placeholder { color: #ffcf6d; }
Or Try it:
:-ms-input-placeholder { /* Internet Explorer 10-11 */ color: #ffcf6d; }
Input field:
<input type="text" placeholder="Enter your full name">
these code change your input placeholder color
To change input placeholder text color use this code
::-webkit-input-placeholder { color: peachpuff; font-size: 13px; }
Or try it:
::placeholder { color: peachpuff; font-size: 13px; }
For example:
<!DOCTYPE html> <html> <head> <title></title> <style type="text/css"> ::placeholder { color: peachpuff; font-size: 13px; } </style> </head> <body> <input type="text" name="name" placeholder="Enter your name"> </body> </html>
To change input placeholder color follow this code
<style type="text/css"> ::-webkit-input-placeholder { /*Your color code here*/ } </style>
For example change placeholder color by input id name.
<style type="text/css"> input[type="text"]#text_id_name::-webkit-input-placeholder { /* #text_id_name is the input text id name*/ color: orange; } </style>
Question and answer is powered by AnsPress.io