My base url in config is : $config['base_url'] = 'http://localhost/ci/';
My CSS folder is on root level(so ci).
In the view I tried:
<head>
<style> @import url('<?=base_url()?>/css/styles.css'); </style>
</head>
and
<head>
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>css/styles.css">
</head>
both fail. what is the correct way to import a CSS file using the Codeigniter framework
Here is how my .htaccess file looks like :
<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
Deny from all
</IfModule>