Where do you expect the scrollbar to be?
On the right most side Screenshot with iA Writer for comparison:
Using
.CodeMirror-code { max-width: 700px; }
currently is good enough for me.
Thanks for nudging me into the right direction, @rsdimitrov!
Thanks! I was wondering if others are getting the tags popup (suggestions after you type in #) to appear way off to the side? Not a big deal but wondering if that is normal or if I’m misimplementing something!
Sorry I am completely new in this world of changing the CSS . I also find same issue as you with the scrollbar, I would like it to be in the right. So, what should I add at the end of the CSS file, this?:
.markdown-source-view, .markdown-preview-view { max-width: 700px; margin: auto; } .CodeMirror-code { max-width: 700px; }
Just the latter. Be aware that this only limits the width, but does not center the text form; the text itself remains left-aligned using this method.
Perfect! Thank you very much, I will try it out
.markdown-source-view, .markdown-preview-view works for me but with the scrollbar. CodeMirror-code does not work to centralise the content. Not sure why??
.markdown-source-view, .markdown-preview-view
CodeMirror-code
To all asking about the scroll bar: I’m unsure how to fix this for y’all. I personally hide the scrollbar because I find it unnecessary. Maybe trying finding a smaller
.CodeMirror-lines, .markdown-preview-view{ max-width: var(--view-max-width); margin: auto; }
I found this can move the scrollbar to the edge of editor mode. But I cann’t do anything to the preview mode.
btw: how do you hide the scrollbar. I am newb…
Thanks, folks, for the inspiration to implement this.
This selector chooses only the contents of both source and preview, as far as I can tell:
.CodeMirror-scroll, .markdown-preview-section { max-width: 40rem; margin: auto; }
That solved for me.
.CodeMirror-lines, div.markdown-preview-section { max-width: 800px; margin: auto; }
FYI this will likely be less of a problem in 0.7!
While selecting the whole page there was a glitch, added ‘selected’ div as well.
.CodeMirror-lines, .CodeMirror-selected, .markdown-preview-section { max-width: 700px; margin: auto; }
Which font are using? It looks really cool!
Whose font?
I was responding to the OPs example. In the photo, I liked the font.
I think it’s Lato.
Header: Avenir (It’s clean and looks cool) Body: Open Sans (its easy to read)
A post was split to a new topic: Can Obsidian open multiple edit panes simultaneously?