Css is css, adding node-red would not get a better response
Just add css class for the two color css to a ui-template. You can the call the class using msg.className at run time.
Using ui-template to set all your css styling has it all in one place for easy editing.
What you have do seem fine to me as you are setting the style using css.
If you require further help, start your own topic and provide examples what is not working for you. It is poor etiquette to hijack another persons topic, it also makes it harder for future readers what the solution for the topic OG issue.
As the only person to use the word deprecated in this thread, I should warn you that I am far from being an expert in HTML or CSS and you may wish to take this into account before changing your code based on my opinion. ![:sweat_smile: :sweat_smile:](https://emoji.discourse-cdn.com/twitter/sweat_smile.png?v=12)
1 Like
CSS to me is like walking on Mars. Nothing I have done yet and I am afraid I will never be able to do.
Honestly, I think my addition fits rather well to the original problem. A minor extension. If you ignore my reference to "dynamically" of course
... hence it might very well be a border crosser.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.