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

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World