How to align tab content left

@Desmas I would like to have readable line length and aligned content to the left side

@awaswy How to have readable line length and aligned content to the left side?

Add these lines to your Obsidian theme CSS file:

.markdown-source-view.is-readable-line-width .CodeMirror {
  margin-left: 0;
}

.markdown-preview-view.is-readable-line-width .markdown-preview-sizer {
  margin-left: 0;
}

As the names imply, the first entry is for the editor/source panes, and the second entry is for the preview panes. See margin-left for other values you can use.

Man, I love that Obsidian gives us this level of configuration.

3 Likes