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
Post a Comment