node.js - Stylesheet (CSS) is not loading in my Sails application -


i've placed style sheet style.css inside /assets/styles-folder , embedded via <link rel="stylesheet" href="style.css" type="text/css"> in something.ejs file.

but stylesheet not loading. has idea?

use following give correct location of style sheet:

<link rel="stylesheet" href="../../assets/styles/style.css" type="text/css"> 

the first .. take views folder, next .. take parent folder employees, can give path stylesheet.

this because path must relative current .ejs or other current file's location in directory.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -