V
V
vik73352018-04-21 22:11:40
Layout
vik7335, 2018-04-21 22:11:40

How to change text color in input?

It would seem a banal thing, but it doesn’t work, apparently I haven’t come across this before. In general, the text should be white, but it's impossible to do it in standard ways)
5adb8c9fb1725828427402.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sevirinov, 2018-04-21
@vik7335

Just style the placeholder

::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color:    #909;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
   color:    #909;
   opacity:  1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
   color:    #909;
   opacity:  1;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
   color:    #909;
}
::-ms-input-placeholder { /* Microsoft Edge */
   color:    #909;
}

::placeholder { /* Most modern browsers support this now. */
   color:    #909;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question