I’m being blocked at the last step where I should enter a body block to format my note.
Things I have tried
I looked to tutorial (especially callouts and css snipset) which I think I understand correctly.
As I don’t know how is called this “body block”, I’m not able to find a tutorial or the topic in the help. All website that I have seen assumes I know how to enter this.
I tried to enter this in the notes. This is obviously not the solution
[!tip] A tip
This is a callout
<p> body { --file_line-width: 1000px> } </p>
my question
can anybody explain me where I should enter this body syntax? Or point me a detailed tutorial?
Thank you again very much. It actually works as you described.
I admit I wanted to have something slightly different.
I have only a few notes that I want very wide and customisable, and those will be identified by the cssclass set as readable-line-width.
For all the other notes (more than 500 notes), I want the default behaviour (as if I switch on the option readable line length).
I could add the cssclass=readable-line-width to the 500 notes. But I don’t want to.
It seems you may have gotten something already, but you could try this as well using only this snippet (with Readable line length enabled in Settings):
.wideish {
--file-line-width: 70rem;
}
The value here can also be (e.g.) 1200px or 80%, but % shifts the body text to the left for whatever reason, I just noticed. This will work with almost all themes (not Minimal). Minimal has its own helper classes built-in, but they can be adjusted as well if need be.
All notes will have the readable line length except those with a cssclass of wideish. wideish can be changed to whatever as long as it doesn’t conflict with another cssclass.