title: How to serve static files in ExpressJS when you are routing a deep directory path?
body: <p>I guess the title might be confusing. I didn't know how to word it but say i have a directory as follows:</p>
  
  <pre><code>/
     app.js
     /static
        /styles
           main.css
     /views
        index.html
        /files
           1.html
           2.html
  </code></pre>
  
  <p>If I serve 1.html and have in it, i have a css file as </p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="static/styles/main.css"&gt;
  </code></pre>
  
  <p>This does not load the css file. It works fine on the index page I'm assuming because it is directly inside the views folder. Because I'm trying to access something in the files folder, its not working. Could someone point me in the right direction?</p>
  
  <p>Also note I have set</p>
  
  <pre><code>server.set('views', __dirname + '/views')
  
  server.use('/static', express.static(__dirname + '/static'));
  </code></pre>