Board Thread:Support Requests - Getting Technical/@comment-26868869-20161012054618

I am making a new infobox for the Pretty Cure wikia, and I want to make the colours of the infobox variable, so one can change the colour of the infobox depending on the character. But it did not work out.

Here is the infobox and this is what I tried to put inside  and I also have a mock version of the infobox on my personal page. Any ideas?

Any other information: I am not an admin, so I'd have to ask for anything CSS related. 