How to manually adjust Obsidian note margin size

What I’m trying to do

I’m trying to make custom-scalable margins so I can fit larger images and wider text lines WITHOUT disabling ‘Readable line length’.

Things I have tried

Tried CSS code blocks from ChatGPT but they didn’t work and I don’t know CSS at all so idk what I’m doing.

Readable line length needs to be enabled for any of these snippets to work.

For the default and almost all community themes, you can use these (for example) on a per-note basis. The class, wideish-view (no dot) etc., goes in the cssclasses section for any notes you want to change.

.wideish-view {
    --file-line-width: 900px; }

.wide-view {
    --file-line-width: 1200px; }

.full-view {
    --file-line-width: 100%; }

Obsidian_87mjv1CQm9


If you want to change the readable line length of all notes in a vault, replace the cssclass with body.

body {
    --file-line-width: 1200px; /* default RLL is 700px */ }

https://help.obsidian.md/snippets if needed.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.