# How to manually adjust Obsidian note margin size

**URL:** <https://forum.obsidian.md/t/how-to-manually-adjust-obsidian-note-margin-size/103160>\
**Category:** Devs: Theme Design & Custom CSS\
**Tags:** custom-css\
**Created:** [July 22, 2025, 12:25am UTC](https://forum.obsidian.md/t/how-to-manually-adjust-obsidian-note-margin-size/103160 "2025-07-22T00:25:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TJW527](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/t/f19dbf/32.png) [@TJW527](https://forum.obsidian.md/u/TJW527)\
**Post date:** [July 22, 2025, 12:25am UTC](https://forum.obsidian.md/t/how-to-manually-adjust-obsidian-note-margin-size/103160/1 "2025-07-22T00:25:07Z")

</div>

### 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.

---

<div class="post-metadata">

**Author:** ![ariehen](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ariehen/32/46932_2.png) [@ariehen](https://forum.obsidian.md/u/ariehen)\
**Post date:** [July 22, 2025, 12:57am UTC](https://forum.obsidian.md/t/how-to-manually-adjust-obsidian-note-margin-size/103160/2 "2025-07-22T00:57:59Z")

</div>

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. The class name (`.wideish-view`, etc.) can be changed as long as it doesn’t conflict with another class in that vault.

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

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

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

```

![Obsidian_87mjv1CQm9](https://forum.obsidian.md/uploads/default/original/3X/7/3/732e010c3f82f17b1737a97a1ce3d28c2ba762dc.gif)

* * *

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

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

```

Alternatively, if you want all notes full width but only some a custom width, we can flip it around:

```css
body {
    --file-line-width: 100%;    
    & .rll { --file-line-width: 700px; }
    & .wide1000 { --file-line-width: 1000px; }
    & .wide1200 { --file-line-width: 1200px; }
}

```

Lots of options to try!

* * *

[https://help.obsidian.md/snippets](https://help.obsidian.md/snippets) if needed.

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [July 29, 2025, 12:58am UTC](https://forum.obsidian.md/t/how-to-manually-adjust-obsidian-note-margin-size/103160/3 "2025-07-29T00:58:53Z")

</div>

Closed on July 29, 2025, 12:58am UTC

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