alignment of texts in nodes.

0 votes
asked Jul 23, 2024 in Question / help by anonymous
Hi, I'm a new to plantuml. I'm trying to draw a mindmap in which the content of a few nodes span multiple lines. In those nodes, the text is not center aligned, but left aligned. How can I get center text alignment in those node. I tried this-

  <style>
  node{
          HorzontalAlignment center
  }
  </style>

But, there is no effect. Can someone help.

1 Answer

0 votes
answered Jul 23, 2024 by dragondive (1,360 points)
 
Best answer

There is a typing error in the skinparam. You likely meant to use:

HorizontalAlignment

If changing this also doesn't fix your problem, please link an example code on the plantuml server.

...