Home > Blockchain >  Is there a way to change the text color of a textarea?
Is there a way to change the text color of a textarea?

Time:03-20

Does anyone know how to change the text color of my code? I tried color: red; but it just changes the background color. My code is here: https://replit.com/@Astro3000/jscompiler#index.html, and the site is here: https://jscompiler.astro3000.repl.co/

CodePudding user response:

Links don't seem to work but the code

html:

<form>
  <textarea> </textarea>
</form>

css:

textarea {
  color: red;
}

works fine in codepen.

edit: seems your site uses inline code

<form>
  <textarea style="color:red;"> </textarea>
</form>
  • Related