I am trying to set an Image in the PUG template engine of node.js
by CSS
but the picture is not appearing on the screen while other properties are working fine.
This is the Code of .PUG
file of that section
section#introsection
| Section for Pictures
This is the Code of css file that is included in .PUG file
#introsection{
background:center/cover no-repeat url("/static/bg.jpg") ;
color: white;
display: flex;
height: 300px;
background-color: lightgreen;}
My picture is in the Static Folder as shown in the code. The other changes is the CSS file are reflected normally in the browser but no picture is appearing.
The error I am getting in the console is : localhost/:1 GET http://localhost/static/bg.jpg 404 (Not Found)