[eluser]Michael Wales[/eluser]
Quote:How can I custom css to refer to the right path of image file.
It would be the same as always - a relative path to the image, from the CSS file.
For me, folder structure is:
|system
|webroot
|-application
|-assets
|--images
|--css
So, in a view file, I use:
Code:
<img src="<?php echo base_url(); ?>assets/images/logo.png" />
In CSS:
Code:
background:url(../images/logo.png);