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

jsf - How to order SelectItems in custom renderer extending MyFaces HtmlMenuRenderer -

Android : Making Listview full screen -

c# - How to share session between a MVC project and a WCF project? -