problem with css - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: problem with css (/showthread.php?tid=51768) |
problem with css - El Forum - 05-16-2012 [eluser]naveen27[/eluser] Hi guys I have problem with css .I have a css file ,i am including that file to my view page (<link type="text/css" href="/css/cupertino/jquery-ui.css" rel="Stylesheet" /> )but i didn't get any style .i am facing problem can any one help me. Thanks in advanced. problem with css - El Forum - 05-17-2012 [eluser]Krystian[/eluser] I`m always looking for such a problem like this: (I`m using Chrome ) 1. ctrl+u to view page source 2. then you can click on the link which should provide you to the css file -> should occur in new tab 3. if not you have wrong path to it if you refer to css file like href=”/css/cupertino/jquery-ui.css” you should have proper entry in htaccess and of course use base_url() so, href=”<?php echo base_url(); ?>css/cupertino/jquery-ui.css” problem with css - El Forum - 05-17-2012 [eluser]naveen27[/eluser] Hi Krystian Thanks for reply. I put the outside of application folder,that getting style.I put the CSS file in the application folder,I included the css file but i didn't get the style.Can you help me. Thanks in advanced. problem with css - El Forum - 05-18-2012 [eluser]InsiteFX[/eluser] You cannot place resouce files under the application directory there is an .htaccess file that stops access to the files! CodeIgniter Structure: Code: application problem with css - El Forum - 05-18-2012 [eluser]naveen27[/eluser] Hi InsiteFX, Thanks for reply. I put the as follow Application css -style.css system index.php Can you help how to give the path to include the css file or is this correct way put the css . Thanks in advanced. problem with css - El Forum - 05-18-2012 [eluser]Krystian[/eluser] I`m always put the css folder at the same level as application folder. then in htaccess RewriteCond $1 !^(index\.php|css|js|images|robots\.txt|favicon\.ico) and then href=”<?php echo base_url(); ?>css/cupertino/jquery-ui.css” problem with css - El Forum - 05-18-2012 [eluser]InsiteFX[/eluser] All of these should be on the same directory level, place your css, images and js folders inside the assets folder Code: ROOT problem with css - El Forum - 05-18-2012 [eluser]naveen27[/eluser] Thanks for clarifying my doubt ....... |