I am trying to make my own widget that should contain an element with a text in color depending on a state. (I know OpenHAB has a build-in version that does the same, but the plan is to enhance my version to support more features.)
My problem is that I can’t get rid of the gray surrounding around the green box - see picture. The goal is the green box should fill the whole widget, just like most of the build-in widgets.
How Do I do that?
Here is the code:
I have ‘solved’ the left/right part by adding >‘margin’:’-10px’<, but I consider this more as a hack, then a solution. I am also still missing the top/bottom part.