css - How to style placeholder attribute across all browsers? -
this question has reply here:
change input's html5 placeholder color css 20 answers placeholder not working net explorer 7 answersi have element <input type="text" placeholder="lorem ipsum">
.
how style thisplaceholder
attribute in css, works across browsers?
placeholder text in inputs has (in browsers implementing far) lite grayness color. style it, you'll need vendor prefix css properties.
::-webkit-input-placeholder { color: red; } :-moz-placeholder { /* firefox 18- */ color: red; } ::-moz-placeholder { /* firefox 19+ */ color: red; } :-ms-input-placeholder { color: red; }
you may check similar question:
change input's html5 placeholder color css css html5
No comments:
Post a Comment