placeholder - Applying css rule for different browser specific selectors -


this question has answer here:

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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -