image problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: image problem (/showthread.php?tid=54481) |
image problem - El Forum - 09-11-2012 [eluser]rochellecanale[/eluser] hey guys i have a problem. my image file wont view after i go to the other pages also my css code. What should i do? i have a separate file for header and footer. And in my header there is the navigation menu also some image. If i want to go to other pages i click one of my navigation menu. and after that the images in my header wont view. what's happening? is it about the location of my images? What should i do? help me guys please.... image problem - El Forum - 09-11-2012 [eluser]Krystian[/eluser] do you have it on-line? view source of the page on both sites: where everytning is ok, and where image is not showing up. maybe this will give you some tip image problem - El Forum - 09-13-2012 [eluser]Abdul Malik Ikhsan[/eluser] just add the base_url() before img path. Code: <img src="<?php echo base_url(); ?>path/to/img/img.jpg" /> image problem - El Forum - 09-13-2012 [eluser]rochellecanale[/eluser] thanks it works!!! image problem - El Forum - 09-13-2012 [eluser]Abdul Malik Ikhsan[/eluser] You're welcome |