Anki Forums

How to preserve html font colour in ccs typed answers

Hi, I’ve been using Anki for a while but I’m new to using the ccs formatting. I mainly use it to learn French and originally used the simple html colour picker to set masculine words to blue and feminine to red because I find it easier to remember them this way. But I’ve recently switched to typed in responses as I wanted to be more accurate with spelling, and found the red and green highlighting overrides my original gender colours. I changed the highlights to just underlines with
.typeGood { background: white; }
.typeBad { background: white; text-decoration: underline; }
.typeMissed { background: white; text-decoration: underline; }
but the words are still black and I was wondering if there was a way to make html colours (which I have on all of my nouns) apply even when I use typed responses, since I removed any colour formatting that comes with typed responses.
Thanks

The typing comparison can’t preserve colours, but you can show the field again separately to show the colours.

ah ok, thank you : )