Independent text and code/table width #5323
Unanswered
andrewfullard
asked this question in
Q&A
Replies: 1 comment
-
Never seen that request before 😀 You would need to stretch the entirety of the container to the full width and then you could probably limit all non-code blocks by using a .md-content__inner > :not(.highlight) {
max-width: 61rem;
} The selector above makes use of a child selector ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
We have code examples and tables in our documentation that should ideally be displayed at full width if possible, while we would like text paragraphs to remain within a sensible range e.g. less than ~75 characters.
We have tried this in extra.css
But this misses many edge cases e.g.

The text in the warning box is a
so it gets wrapped but the container isn't set. this has a specific type so it could be overridden either way. Code blocks nested within a bulleted list get overwritten (see the ssh example at the bottom) but not ones that have a line break so they're outside of the list (the example at top).
Beta Was this translation helpful? Give feedback.
All reactions