Welcome Guest, Not a member yet? Register   Sign In
CSS external files.
#1

[eluser]mlakhara[/eluser]
Hello to the codigniter community. I myself am excited about being a new member of codeigniter developers. I have just started with CI and i have done quite a week's worth reading before dirtying my hands into the code.
I did start last night with a litle code like a couple of controller for logging in a user and then redirecting them to the profile page.
Everything works fine till now but there is a little hunch with the styling. I cant get any external css files to work. It is not getting loaded with any style.
I checked the rewrite rules and they are fine.
REWRITE RULES
Code:
RewriteEngine on  
    RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)  
    RewriteCond %{REQUEST_FILENAME} !-f  
    RewriteCond %{REQUEST_FILENAME} !-d  
    RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]

I have also tried placing my stylesheets in different directories and accessing them.
This line is the one where I am trying to load the stylesheet.
the stylesheet is in the application/views/includes/styles/ folder.
Code:
<html>
<head>
<title>The MNITLIB APP</title>
<link type="text/css" href="includes/styles/style.css" media="screen"/>
</head>
<body>
<h1>Malviya National Institute Of Technology</h1>
<div id="login_form">
&lt;?php echo form_open('login/validate_credentials');?&gt;
Email id: &lt;?php echo form_input('username');?&gt;
Password:&lt;?php echo form_input('password');?&gt;
&lt;?php echo form_submit('submit','LOGIN');?&gt;
&lt;?php echo form_close();?&gt;
</div>
&lt;/body&gt;
&lt;/html&gt;

please give me suggestions and help me identify the problems.



Messages In This Thread
CSS external files. - by El Forum - 05-18-2012, 03:09 PM
CSS external files. - by El Forum - 05-18-2012, 09:30 PM
CSS external files. - by El Forum - 05-18-2012, 11:26 PM
CSS external files. - by El Forum - 05-19-2012, 12:07 AM
CSS external files. - by El Forum - 05-19-2012, 03:00 AM
CSS external files. - by El Forum - 05-19-2012, 04:52 AM
CSS external files. - by El Forum - 05-19-2012, 07:21 AM
CSS external files. - by El Forum - 05-19-2012, 07:25 AM
CSS external files. - by El Forum - 05-19-2012, 08:14 AM
CSS external files. - by El Forum - 05-19-2012, 08:33 AM
CSS external files. - by El Forum - 05-19-2012, 09:14 AM
CSS external files. - by El Forum - 05-19-2012, 09:29 AM
CSS external files. - by El Forum - 05-19-2012, 10:24 AM
CSS external files. - by El Forum - 05-19-2012, 11:31 AM
CSS external files. - by El Forum - 05-19-2012, 11:35 AM
CSS external files. - by El Forum - 05-19-2012, 12:45 PM
CSS external files. - by El Forum - 02-05-2013, 01:52 PM
CSS external files. - by El Forum - 02-05-2013, 02:12 PM
CSS external files. - by El Forum - 02-06-2013, 10:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB