Skip to content

Center Aligning Mermaid Graphs #17

Answered by imfing
zigmd asked this question in Q&A
Discussion options

You must be logged in to vote

@saurabh-mish it's possible by adding a <div align="center"> around the diagram:

<div align="center">

```mermaid
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
```

</div>

Preview:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zigmd
Comment options

Answer selected by zigmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
how-to How to do something
2 participants