How to Centre Text in Text Panel?

Is there a way to centre text both horizontally and vertically in the Text Panel? I could centre it with flexbox in HTML, but this requires the width and height of the div container to be hardcoded. I would like the text to be centred and still allows adjustment of the Text Panel size.

This seems to work for me (using HTML mode):

<p style="text-align: center">I'm in the center</p>

@marcusolsson It does but only horizontally. Can’t seem find a way to center align the text vertically also.

Oh, I’m sorry. I must’ve read too fast. I tried a few ways, but wasn’t able to center vertically unfortunately. I can see how this would be useful to many people. Maybe submit an feature request on GitHub?

Thanks @marcusolsson. I have raised the feature request here.

1 Like