Sunday, 13 August 2017

html - Change an HTML5 input's placeholder color with CSS

Chrome supports the placeholder attribute on input[type=text] elements (others probably do too).



But the following CSS doesn't do anything to the placeholder's value:





input[placeholder], [placeholder], *[placeholder] {
color: red !important;
}







Value will still remain grey instead of red.



Is there a way to change the color of the placeholder text?

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...