Skip to content

Center Aligning Mermaid Graphs #17

Answered by imfing
allocgator 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
@allocgator
Comment options

Answer selected by allocgator
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