-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot center-justify text in nodes? #397
Comments
I centre all the text in my diagrams by adding a style to the svg using |
Thank you! But how do I do that with the stand-alone mermaid? That is, I'm just running it from the command line to produce images. |
+1 |
@RobertGoulding you can use |
It seems that problem are solved.
Please read http://localhost:4000/faq.html How to specify custom CSS file? |
Link should be https://mermaidjs.github.io/faq.html |
@elenigen Note that this is a years old issue so what's reflected here might not be in the current version. I'm not sure if the center tag will actually work but if you want to use html tags you will have to set the security level to loose. Check the readme for more information and feel free to create a new issue if you have any. Thanks! |
I'm trying to replicate part of the diagram found here:
http://echo.mpiwg-berlin.mpg.de/content/scientific_revolution/harriot/harriot_manuscripts/maps/9.2.3_colour.pt
(which I myself made with a graphical editor).
Here is how I started:
But I cannot get the text in each box to align in the center. I've been able to pass on all kinds of other CSS attributes using this format; but none of the text-align attributes seem to have any effect.
The text was updated successfully, but these errors were encountered: