How to import external css file #6953
-
How can I import in the html render node file an external css (a child note). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Trilium doesn't support importing a child note as an external CSS file into an HTML render node using a <style>
/* Your CSS here */
body { background: #f0f0f0; }
h1 { color: #3366cc; }
</style>
<div>
<h1>Hello, Trilium!</h1>
<p>This note uses custom CSS.</p>
</div> This HTML should go in your child note of type To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
You can also create a CSS note and assign |
Beta Was this translation helpful? Give feedback.
You can also create a CSS note and assign
#appCss
to it. it will apply globally, but if you get your class names unique, it works.