I have this HTML:
<input type="text" class="example" placeholder="Example"><br><br>
<input type="text" class="example" placeholder="Example"><br><br>
<input type="text" class="example" placeholder="Example"><br><br>
<input type="text"><br><br>
<input type="text"><br><br>
<input type="text"><br><br>
When I use this CSS, it works (https://jsfiddle.net/sv1sqgq4/1/):
.example::-webkit-input-placeholder {
color: red;
}
.example:-moz-placeholder {
color: red;
}
.example::-moz-placeholder {
color: red;
}
.example:-ms-input-placeholder {
color: red;
}
But, when I do it like this, it's not working (https://jsfiddle.net/sv1sqgq4/):
.example::-webkit-input-placeholder,
.example:-moz-placeholder,
.example::-moz-placeholder,
.example:-ms-input-placeholder {
color: red;
}
How do I refactor this CSS? Am I missing something?