How to adjust the max-width of an admonition? #4987
Answered
by
squidfunk
jeremy-feng
asked this question in
Q&A
-
When I hide the navigation and TOC, the content width is very large, especially on a large screen. I want to set the max-width of an admonition, and make it center-aligned. How can I do so? |
Beta Was this translation helpful? Give feedback.
Answered by
squidfunk
Feb 4, 2023
Replies: 1 comment 4 replies
-
You can adjust Material for MkDocs to your needs with additional CSS: .md-typeset .admonition {
max-width: 500px; /* <-- adjust to fit */
margin-inline: auto;
} |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
jeremy-feng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can adjust Material for MkDocs to your needs with additional CSS: