When a user clicks in the box below, the cursor and typed text are black. How could I make them the color of #DE2A00
?
<div class="usernameformfield"><input tabindex="1" accesskey="u" name="username" type="text" maxlength="35" id="username" /></div>
Use color to specify the text color. Use caret-color to specify the caret's color. This should be the answer now.
Just use CSS:
#username{color:#000;} /* black when not with focus */
#username:focus{color:#de2a00;} /* green when input has focus - only affects this specific input */
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With