You can achieve your goal in several decisions.
In the first case, you must change your HTML markup. Using your CSS, you are first looking for the "box" class, and for the input element. Thus, the working HTML markup will look like this:
<span class="box"><input /></span>
span , .
1
, ( textarea) CSS .box. , textarea, "box".
input.box::-webkit-input-placeholder, textarea.box::-webkit-input-placeholder {
color: blue;
}
2
- textarea. , "" .
.box::-webkit-input-placeholder {
color: blue;
}
3