Welcome Guest, Not a member yet? Register   Sign In
css and path to image
#1

[eluser]Krystian[/eluser]
Hi,

when, in view, e.g we include a css file or js file it is better to use "base_url()"
in case when we in the future will have to move our app on different hosting, etc...

Code:
<link type="text/css" href="<?php echo base_url(); ?>css/style.css" rel="stylesheet" />

how to avoid problems in css files e.g

#footer { width: 100%; height: 30px; margin-top: 30px; bottom: 0px; background-image: url('/app/images/footer_bckg.png');

where app is the folder which contains CI Smile





Theme © iAndrew 2016 - Forum software by © MyBB