CSS Files and Elementary #38
Answered
by
sliemeobn
nonfungibletunji
asked this question in
Q&A
-
how to use a custom CSS file, i tried to use inline between style tag without much success
|
Beta Was this translation helpful? Give feedback.
Answered by
sliemeobn
Sep 20, 2024
Replies: 2 comments
-
if you include it in an "inline" style tag, be sure to wrap the content in an if you already have a css file, it is probably better to use something |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sliemeobn
-
Yeah I used and existing .css file and file middleware.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you include it in an "inline" style tag, be sure to wrap the content in an
HTMLRaw
.otherwise elementary will html-escape your text (ie: escape out &<>)
if you already have a css file, it is probably better to use something
link(.href("/path-to-your.css"), .rel(.stylesheet))
and a file middleware for better caching.