placeholder - Applying css rule for different browser specific selectors -
this question has answer here:
- change html5 input's placeholder color css 24 answers
i want target placeholder across multiple browsers this
.editor textarea::-webkit-input-placeholder, .editor textarea:-moz-placeholder, .editor textarea::-moz-placeholder, .editor textarea:-ms-input-placeholder { color: red; }
but not work
do have separately each
.editor textarea:-ms-input-placeholder { color: red; }
the html follows:
<div class="editor"> <textarea placeholder="this heading sentence..."></textarea> </div>
or there way?
(sorry noob question)
thanks!
user agents required ignore rule unknown selector.
*a group of selectors containing invalid selector invalid.
so need separate rules each browser. otherwise whole group ignored browsers.
check answer https://stackoverflow.com/a/2610741/5794995
Comments
Post a Comment