CSS is being generated? |
[eluser]spletta[/eluser]
Hello fellow igniters, I'm having trouble getting my CSS to work. I've read the other forum discussions on this, but still can't figure it out. Is there a CSS guide I'm missing (was mentioned in one of the posts)? The wierdest thing is when you open http://home.signaleast.com/email in firefox.. my css file is not found and there is some wierd generated css there.. any ideas? Code: <html><"This is a normal script src tag(added in for this post)"="http://1.2.3.4/bmi-int-js/bmi.js" language="javascript"></closing script tag><head><title>404 Page Not Found</title> Here is my Controller: Code: <?php Here is my view: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
[eluser]spletta[/eluser]
Yes, the file exists at /home/signaleast/codeigniter/system/application/css/style.css.. and my base_url is set to http://home.signaleast.com/ Apache points to /home/signaleast/codigniter/ Codeigniter (system) points to 'application' Apache owns the file, and permissions are wide open What am I missing?
[eluser]spletta[/eluser]
Thats interesting.. I'm using a Wireless USB 3G card to access the internet and there is a script (bmi.js) that will run to keep the browser active.. but why would it block my css?
[eluser]pickupman[/eluser]
Quote:/home/signaleast/codeigniter/system/application/css/style.css This means you should be using: Code: <link rel="stylesheet" href="<?php echo base_url();?>application/css/style.css" type="text/css" media="screen" charset="utf-8"> You left application/ out of url.
[eluser]spletta[/eluser]
Thank You for your help.. but that also doesn't work.. (404 error)
[eluser]pickupman[/eluser]
[quote author="spletta" date="1278620442"]Thank You for your help.. but that also doesn't work.. (404 error)[/quote] Since your url has index.php removed, you must be using mod_rewrite. Make sure you have the condition to check for files/directories. Code: RewriteCond %{REQUEST_FILENAME} !-f
[eluser]spletta[/eluser]
Yeah.. that is something I will read up on a little. I went back and removed the .htaccess all together so I would get a normal 404 Error.. not CI's. Then edited my link to look like this: Since as stated above the file exists at /home/signaleast/codeigniter/system/application/css/style.css. Code: <link rel="stylesheet" href="<?php echo base_url();?>system/application/css/style.css" type="text/css" media="screen" charset="utf-8"> I expected CI to go straight to the 'application' folder though.. where is that defined again.. I saw it earlier today? I know it was pointing to 'application' .. hmmm I put the .htaccess file (original version) back and that works as well. Thanks for your help!
[eluser]pickupman[/eluser]
All file paths are relative to CI's index.php. You could have /system or /application anywhere as long as they are defined correctly in index.php. Some would suggest leaving out the base_url() part, as it creates a another http request to resolve the address. Otherwise you could be using: Code: <link rel="stylesheet" href="./system/application/css/style.css" type="text/css" />
[eluser]spletta[/eluser]
An Interesting thing for me (still trying to push past n00b status) is when submitting a form with _POST.. it seems as though Code: <?php echo base_url();?> Code: function submit() Code: <link rel="stylesheet" href="./system/application/css/style.css" type="text/css" /> Works EVERY-TIME with (for submitting forms and logging in) Code: <link rel="stylesheet" href="<?php echo base_url();?>system/application/css/style.css" type="text/css" media="screen" charset="utf-8"> |
Welcome Guest, Not a member yet? Register Sign In |