Background from image in obsidian folder

Things I have tried

What I’m trying to do

I read Obsidian and HTTP documentation

I have theme-workspace.css file (snippet). There is a line:

background-image: url(https://images.pexels.com/photos/956981/milky-way-starry-sky-night-sky-star-956981.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2);

Works good. But I wanted to set the background to an image from a folder in obsidian. Tried to do like this:

background-image: url(obsidian://open?vault=obsidian&file=nebo.jpeg); 
background-image: url(file:///C:/Users/stran/OneDrive/obsidian/nebo.jpeg); 

But it doesn’t work. Tell me how to solve the problem?

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