[Fixed]-Adding colour in a django models.TextField

0👍

give your textfield an identifier in your html code ,

like, id=”tf”

then css will be

#tf{
 color : #aaaaaa;
}

write your color code in place of #aaaaaa.

1👍

I’m not sure I get what you mean by ‘middle section’, but regardless, this would have to be done in client-side since what you want is to manipulate something like the color of a certain TextField. You could do it by using the CSS color properties or even Javascript.

👤Nifled

Leave a comment