I want to center the label text for a gauge label because I have a line break in the label text, and centered the label looks much better than aligned left. So I tried something like <div style='text-align: center'>{{msg.mylabeltext}}</div>. Unfortunately this does not work, only the
and the label text show up in the dasboard, the style part is missing. Why is that? Things like <font color="red">{{msg.payload}}</font> do work though. Is there a rule what works and what not?
As a workaround I tried to use a template node and create a specific class for that. But that is not an ideal solution either as I use more than one gauge on the page and I want only this gauge to have this centered two line label.
Thanks for your answer. I'm pretty busy at work, so I can only reply now. Isn't the node ID volatile? Is there a way to give the p-tag inside the md-card it's own id?