Referencing local files in CSS

Silke Jänichen asked on March 26, 2021 11:29

How to reference local files (e.g. fonts, images) from bundled stylesheets? As far as I can see, you can only reference them from root context. To give an example, in my MVCs app content folder I have a style.css file, which refers to a font like url:(/Content/fonts/fontfile.ttf). Since this doesn't work in all environments, I wonder if there is a way to use relative paths?

   Please, sign in to be able to submit a new answer.