title: CodeIgniter - Linking an exernal css not working
body: <p>Here is the hierarchy of my files</p>
  
  <pre><code>Codeigniter/
     applications/
         assets/
             styles.css
         ...
         views/
             welcome.php
  
     system/
         ...
  </code></pre>
  
  <p>under my style.css is this code</p>
  
  <pre><code>p {
      color: #3333ff;
      background-color: #66ff66;
  }
  </code></pre>
  
  <p>and under the welcome.php is this one.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;test&lt;/title&gt;
  
      &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo base_url(); ?&gt;assets/styles.css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
       &lt;p&gt;test&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I set my base_url as</p>
  
  <pre><code>$config['base_url'] = 'http://localhost/Codeigniter/';
  </code></pre>
  
  <p>I cant understand why the css file isn't working</p>
  
  <p>I also tried to change link to</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="&lt;?php echo base_url(); ?&gt;application/assets/styles.css" /&gt;
  </code></pre>
  
  <p>but didn't work also</p>