However, the last line does not take effect. The width of the page within the editing window is always not exceeding 700px. In other words, while example shown above doest not work, if i set the max-width to 100px, the page width will become 100px.
I want to know what can I do to get a wider page width? (I prefer to not change the font-size, by the way).
Thanks for the guide.
I tried applying the code, the scrollbar placement is a bit annoying though.
In the same thread, there are another version of the code which keep the scrollbar at the default place:
Not work for me. I turn off âReadable line lengthâ but the text donât change, just group at the center. It does not expand to full width. Nothing change.
I see, because âminimalâ theme ( https://github.com/kepano/obsidian-minimal) is broken, does not support turn off âReadable line lengthâ. Other theme, or None, it work.
I have updated the code snippet for customizing view width in both editor and preview mode. And this only applies when you have switched on âReadable Line Widthâ option:
.markdown-source-view.is-readable-line-width .CodeMirror,
.markdown-preview-view.is-readable-line-width .CodeMirror,
.markdown-source-view.is-readable-line-width .markdown-preview-sizer,
.markdown-preview-view.is-readable-line-width .markdown-preview-sizer {
max-width: 1000px;
margin: auto;
}
I personally set to max content width of 1000px because this works very nice on my monitor. People can change this value for your preference of course.
Iâm also interested in applying this in editor mode. Itâs kind of obnoxious to have a decently sized monitor and only use a two-inch column in the middle. Deselecting âReadable Line Lengthâ just sets it to the opposite extreme. Honestly, Iâm surprised that custom width isnât just a basic part of the Obsidian.
The margins arenât the majority of my screen now, thanks! Iâm in agreement with @timmyreal. Margin customization should be a higher-priority addition. The two extreme choices for margins right now arenât ideal. This snippet helps your page look more like Microsoft Word, if desired. The ability to adjust margins within Editor would be a very welcome update.
Sadly, that CSS snippet does not appear to work for me on v0.13.23, at least in editor mode with live preview. There is no longer a .CodeMirror class. Trying to apply it to the .cm-editor class instead (Iâm unsure if those are analogous) didnât work correctly.
Oh! Thanks! I had completely skipped past that one and went for the CSS snippet posted by another user more recently. Your version works great, thanks.