If you have a problem with linking to your css and images in view file, this may help you.
Firstly you need to check your applications/config/config.php and make it sure you have a proper path in your Base Site URL.
Then go to your view file and add followings in the head.
<base href=”<?=base_url();?>”>
Change your_style.css to your css name and save it in the css folder which is the same level as the system folder.
The first one should link to your css file.
And the second one is for your image file. If you have to save an image in your databse, this will be very handy.
However if you are adding images directly to your view file, then the following will be ok as well.
Then take out <base href=”<?=base_url();?>”> in the head, and use the following for each image.

it did not worked in my site
<img src="images/info.png” />
this articel very usefull when my URL is http://localhost/myapp/ changed to http://localhost/myapp/index.php/login/logout when i press the logout button.
thanks for share