Problem CI 4.1.6 background-image |
Hi people,
I'm new here... I need some help, I'm not a developer but I understand several things... So... I have a project in localhost, working, everything ok. My problem is in hosting... I can't I see any image identify as background-image:url() I have this: <li style="background-image:url(assets/images/folder/folder/image.jpg);"></li> Ten like that... If I go to inspect or to view-source the image is ok... (I meant the link) the image is uploaded but nothing happens... I tried with class="background" and <style>...</style> but nothing happens... I need those images... Any option? Thank you so much!!!
Use base_url().
PHP Code: <li style="background-image:url(<?= base_url('assets/images/folder/folder/image.jpg') ?>);"></li> See https://codeigniter.com/user_guide/helpe...l#base_url |
Welcome Guest, Not a member yet? Register Sign In |