Foreground color change in template

I am sending this msg.payload to a smal template (size1x2) which shows a room and the last time of the sensor read.

msg.payload = "<center>" + "<br>" + room + "<br>" + "<font size='2'>" + msg.time + "</font>" + "</center>";

Now I want to change the color of the room to light blue when a window sensor sends open and back to white when the window is closed. As I have no experience in template programming any help is very much appreciated.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.