# How to make list indents deeper in editor mode?

**URL:** <https://forum.obsidian.md/t/how-to-make-list-indents-deeper-in-editor-mode/6550>\
**Category:** Help\
**Created:** [October 4, 2020, 1:16am UTC](https://forum.obsidian.md/t/how-to-make-list-indents-deeper-in-editor-mode/6550 "2020-10-04T01:16:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ishgunacar](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ishgunacar/32/5220_2.png) [@ishgunacar](https://forum.obsidian.md/u/ishgunacar)\
**Post date:** [October 4, 2020, 1:16am UTC](https://forum.obsidian.md/t/how-to-make-list-indents-deeper-in-editor-mode/6550/1 "2020-10-04T01:16:06Z")

</div>

![image](https://forum.obsidian.md/uploads/default/original/2X/d/d0a69df2f58256fd45cfa987f7d56472ecd08412.jpeg)

Hi all,  
Is there a way to make the list indent deeper in editor mode, kind of similar to how it renders in preview mode? Its a bit hard to read in editor mode since the successive indents are so close to each other.

With my amateur CSS skills, I tried looking into it, but it looks like the program assigns the indent to the line through inline CSS as the text is typed. Or am I missing something?

 ![image](https://forum.obsidian.md/uploads/default/original/2X/4/4318adde93c8d76bf4ac69e1a91b4fd6396520f8.jpeg)

---

<div class="post-metadata">

**Author:** ![tallguyjenks](https://forum.obsidian.md/user_avatar/forum.obsidian.md/tallguyjenks/32/42858_2.png) [@tallguyjenks](https://forum.obsidian.md/u/tallguyjenks)\
**Post date:** [October 4, 2020, 4:14am UTC](https://forum.obsidian.md/t/how-to-make-list-indents-deeper-in-editor-mode/6550/2 "2020-10-04T04:14:56Z")

</div>

+1 interested in the answer to this

---

<div class="post-metadata">

**Author:** ![sam.baron](https://forum.obsidian.md/user_avatar/forum.obsidian.md/sam.baron/32/20_2.png) [@sam.baron](https://forum.obsidian.md/u/sam.baron)\
**Post date:** [October 4, 2020, 5:17pm UTC](https://forum.obsidian.md/t/how-to-make-list-indents-deeper-in-editor-mode/6550/3 "2020-10-04T17:17:05Z")

</div>

You can override the inline css by placing `!important` next to your CSS rules. So for example:

```auto
.cm-s-obsidian pre.HyperMD-list-line {
  padding-left: 25px !important;
}

```

---

<div class="post-metadata">

**Author:** ![ishgunacar](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ishgunacar/32/5220_2.png) [@ishgunacar](https://forum.obsidian.md/u/ishgunacar)\
**Post date:** [October 4, 2020, 5:48pm UTC](https://forum.obsidian.md/t/how-to-make-list-indents-deeper-in-editor-mode/6550/4 "2020-10-04T17:48:34Z")

</div>

This worked! don’t know why I didn’t think of that.  
(note: this breaks relationship lines in editor mode, but tbh the deeper indents makes them not as necessary anyway)

```
.cm-s-obsidian pre.HyperMD-list-line-1 {
  padding-left: 20px !important;
}

.cm-s-obsidian pre.HyperMD-list-line-2 {
  padding-left: 50px !important;
}

.cm-s-obsidian pre.HyperMD-list-line-3 {
  padding-left: 80px !important;
}

.cm-s-obsidian pre.HyperMD-list-line-4{
  padding-left: 110px !important;
}

.cm-s-obsidian pre.HyperMD-list-line-5 {
  padding-left: 140px !important;
}

.cm-s-obsidian pre.HyperMD-list-line-6 {
  padding-left: 170px !important;
}

.cm-s-obsidian pre.HyperMD-list-line-7 {
  padding-left: 200px !important;
}

.cm-s-obsidian pre.HyperMD-list-line-8{
  padding-left: 230px !important;
}
```

---

<div class="post-metadata">

**Author:** ![hieu](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hieu/32/80251_2.png) [@hieu](https://forum.obsidian.md/u/hieu)\
**Post date:** [October 12, 2020, 1:24am UTC](https://forum.obsidian.md/t/how-to-make-list-indents-deeper-in-editor-mode/6550/5 "2020-10-12T01:24:10Z")

</div>

this is great, thank you!

@ishgunacar i have this right above your code and it keeps the relationship lines in editor, though it’s stumpy & doesn’t go all the way down as in preview mode…

```auto
.cm-hmd-list-indent .cm-tab, ul ul { position: relative; }
.cm-hmd-list-indent .cm-tab::before, ul ul::before {
 content:'';
 border-left: 1px solid rgba(0, 122, 255, 0.25);
 position: absolute;
}
.cm-hmd-list-indent .cm-tab::before { left: 0; top: -5px; bottom: -4px; 
}
ul ul::before { left: -11px; top: 0; bottom: 0; 
} 

```

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [April 1, 2023, 1:41pm UTC](https://forum.obsidian.md/t/how-to-make-list-indents-deeper-in-editor-mode/6550/7 "2023-04-01T13:41:24Z")

</div>

Closed on April 1, 2023, 1:41pm UTC


