I would like to vertically arrange the text of a button within a widget to save space. In CSS I found a wording like ‘text orientation upright’. Is this even possible in OH3 and how can I realize this?
Yes, this is possible. All css directives just get put in the style object and text-orientation: upright is no different. There are several ways to do this, and text orientation is one of them, however, that’s not the only setting you need in this case. Changing the text orientation just changes the direction that the characters themselves are turned, but if you haven’t also changed the direction that words are written, than setting the character orientation to upright has no effect. So you also have to use writing-mode. Writing mode without reorienting the characters just displays rotated text: