CSS Problem Solved!!!!!!!! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: CSS Problem Solved!!!!!!!! (/showthread.php?tid=68150) Pages:
1
2
|
CSS Problem Solved!!!!!!!! - shaser - 06-01-2017 Hi guys im trying to add an external css file but don't work here is the code Code: <link rel = "stylesheet" href = "<?php echo base_url();?>application/css/generalstyle.css"> I loaded the helper PHP Code: $autoload['helper'] = array('html','url','form','date'); any ideas why don't work? Thanks RE: CSS Problem - Paradinight - 06-01-2017 (06-01-2017, 11:07 AM)shaser Wrote: Hi guys im trying to add an external css file but don't work here is the codeBecause of the htaccess file in the application folder. (see) move the css folder above application or My Folder structure - system - application - public --assets --- css --- js --- image --index.php RE: CSS Problem - PaulD - 06-01-2017 It looks fine. What appears in your HTML and where is your css actually located? It is unusual to have a css folder inside the application folder, usually people put them in an assets folder. PS Cross posted with above answer from Paradinight which explains why assest should not be in the application folder. RE: CSS Problem - shaser - 06-01-2017 my folder structure is application --css --view --controler --mod thanks RE: CSS Problem - shaser - 06-01-2017 (06-01-2017, 11:19 AM)PaulD Wrote: It looks fine. my folder structure is application --css --view --controler --mod thanks RE: CSS Problem - PaulD - 06-01-2017 As Paradinight suggested above, move your css folder out of the application folder. RE: CSS Problem - shaser - 06-01-2017 (06-01-2017, 11:17 AM)Paradinight Wrote:(06-01-2017, 11:07 AM)shaser Wrote: Hi guys im trying to add an external css file but don't work here is the codeBecause of the htaccess file in the application folder. (see) hi I take out htaccess and it is works. I will need that file? Thanks RE: CSS Problem - shaser - 06-01-2017 Thanks Guys RE: CSS Problem - Paradinight - 06-01-2017 (06-01-2017, 11:32 AM)shaser Wrote: Thanks Guys put the file back. the file protect your folders in application from direct access :| put the css folder above the application or use the folder structure i showed to you RE: CSS Problem - shaser - 06-01-2017 (06-01-2017, 11:41 AM)Paradinight Wrote:(06-01-2017, 11:32 AM)shaser Wrote: Thanks Guys it is above application folder this is the address ../application/css/file.css but if I put htaccess file back don't work. |