How to color the input placeholder with CSS

Did you know that you could change the placeholder color of an input text?

I didn't. If you try to use color: red it will only color the text you enter with the keyboard, not the placeholder.

Here's the CSS code to color the placeholder:


If you're using LESS like I do, this one is for you:

Leave a Reply

Add <code> Some Code </code> by using this tags.