Console always says : GET http://localhost:8000/public/stylesheets/mystyle.css
.
Of course, as you will see in the attached below image, apparently it refers to an incorrect path. I used WebStorm itself to generate the href
attribute of CSS.
app.js
var express = require("express"),
app = express(),
bodyParser = require("body-parser"),
mongoose = require ("mongoose");
app.use(express.static("public"));
app.set("view engine","ejs");
app.use(bodyParser.urlencoded({extended:true}));
header.ejs
<html>
<head>
<title>My Blog</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.9/semantic.css" type="text/css">
<link rel="stylesheet" type="text/css" href="../public/stylesheets/mystyle.css" >
</head>