I am not familiar with html or css.
How can I format it, that "motor" and the circle are in one line in a 2x1 field.
Motor should be in white and msg.payload delivers red or grey.
Hi, I'm afraid that your HTML is a decade out of date!
<div> will always start a new para by default. <center> and <font> really aren't used any more and you should use CSS style attributes instead. <br> is giving you an extra blank line and is unnecessary, if you want to have more space above the first content in your outer div, again use CSS style on the div with padding-top: 1em; or similar.
To directly answer your question, you should replace the <font> and inner <div> both with <span> which doesn't throw a new para.
Not sure, I'd have to play with it - bear in mind that I'm an amateur not a CSS pro. I'm afraid that I'm about to go out for a couple of days so won't be able to respond.
If you really want things to line up no matter what, use a table or look at the grid feature of modern CSS.
Oh, and get rid of those non-breaking spaces - this isn't Microsoft Word!