![]() |
CSS not loading properly - 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: CSS not loading properly (/showthread.php?tid=60490) |
CSS not loading properly - El Forum - 04-08-2014 [eluser]rand0m[/eluser] This is how my application is set up Code: / My index controller loads up layout.php passing a parameter of page title which layout should include in it. Code: /* and the layout includes the header, footer and tries to load up the page passed as an argument in Index function Code: /* simple as A, B and C. The problem I see is that when I try loading the CSS in header Code: /* Code: /* I've addded charset="utf-8" and media="all" attributes to link tag, This is how the CSS loads up: http://i.imgur.com/oPjAJmQ.png http://i.imgur.com/QhbDMeG.png There are no PHP/Apache errors. Does anyone else suffer from same issue? CSS not loading properly - El Forum - 04-08-2014 [eluser]InsiteFX[/eluser] Code: <link rel="stylesheet" href="<?php echo base_url('assets/css/contrib/bootstrap.min.css');?>" type="text/css" /> CSS not loading properly - El Forum - 04-08-2014 [eluser]rand0m[/eluser] I've tried that already base_url()."path" and base_url("path") and it doesn't solve anything. :/ I rebooted my machine and virtual machine to be sure. but it still is an issue. CSS not loading properly - El Forum - 04-08-2014 [eluser]rand0m[/eluser] Alright, I figured out what the issue was, My Apache settings was the culprit and was serving stale (cached) content. I've changed my apache settings and this works now with no issues ![]() thanks! |