Problem with Obsidian Publish custom theme indentation

In one of my Obsidian Publish pages I have text that I am indenting using <ul> method (this forum post details this method in case you’re interested). I can see the indented text just fine locally.

However, when I Publish the page the indented text does not appear on the site. If I check the dev-tools it shows that the div .el-ul differentiates these sentences/paragraphs from the standard paragraphs .el-p. So, I wrote a little css .el-ul {margin-left: 4em;} But it is not rendering on the published page.

What am I doing wrong?

SOLVED: I needed to move the css snippet into the .published-container

1 Like