I have included my css into application folder in codeigniter
Folders:
system
application
application/css/style.css
I am unable to load the my view file if I include css file like this
<link rel="stylesheet" href="<?php echo base_url();?>css/style.css" type="text/css" media="screen"/>
What could be the reason? Please help me to solve this issue.
<html>
<head>
<link rel="stylesheet" href="<?php echo base_url();?>css/style.css" type="text/css" media="screen"/>
</head>
<body>
<table width="100%" border="1" >
<td align="left"><h1>hellooooooo</h1></td>
</table>
</body>
</html>
Keeping the Css folder in the root and writing the below code in php page. Solved my issue.
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="all" />