dlinkdesign
11-12-2009, 10:17 AM
I'm working on creating my own website, the problem is that the css stylesheet only loads my website perfectly in Google Chrome, and Safari browsers. When I cross check against Firefox, IE, or Opera, the stylesheet doesn't load at all, only the basic index.html file that I created if the stylesheet doesn't load shows up.
I've been searching forums and websites for hours trying to figure out the problem from other people with the similar issue, and nothing has worked for me. Here's everything I've tried and none have worked:
1. Renaming the .css
2. Putting the index, css, and image files in ALL public locations on the server
3. Completely deleting all files, and the add-on domain and adding it again
4. Changing the file codes from uni-8, ascii, etc.
5. Checking both the index and css to make sure they're valid, which they are.
6. Clearing all browser history, cache, and temp files.
7. Adding <Files *.css
AddType exp=*.css type=text/css
</Files to a .nsconfig file
8. Adding AddType text/css .css to .htcaccess
9. Creating a directory in my main domain and linking to that in the stylesheet, then tried creating a directory in my add-on domain and linking to that
10. Using full path names to link to in the stylesheet
11. Checked that when the .css is viewed in the browser it's a text/css and not text/html
12. Checked with Firebug for errors and it says Failed to load source for: http://www.daphnelink.com/stylesheet.css But I can visit the file fine, even after renaming...so, I'm not sure what to do with this error.
I should also mention that the domain is an add-on domain on justhost servers, so it's like a subdomain, since I have another main domain (hopefully this makes sense).
Example: I already have www.mysiteOne.com, but I needed hosting for mysiteTwo.com, so I pointed the nameservers to mysiteTwo.com as well, to use the hosting on justhost, and created mysiteTwo.com as an add-on under mysiteOne.com. mysiteTwo.com can be visited normally as mysiteTwo.com, instead of a regular subdomain like mysiteTwo.mysiteOne.com.
Anyway, I also found that some people say this could be a problem with my server, (Apache on justhost in my case). If so, how do I fix this? Do I need to email justhost, and if so, what do I need to tell them in particular to fix the problem?
Lastly, I should also mention that I had a different css and index file last week and everything loaded fine, and when I created this new css and index file for a different layout this week, I got this issue. So, this problem wasn't happening last week.
Thanks in advance for anyone that can help me & apologies for the length, but I tried to be as detailed as possible.
Site (http://www.daphnelink.com)
CSS File (http://www.daphnelink.com/stylesheet.css)
I'll edit this post to add the code if needed; like I mentioned it's all been validated against w3.
I've been searching forums and websites for hours trying to figure out the problem from other people with the similar issue, and nothing has worked for me. Here's everything I've tried and none have worked:
1. Renaming the .css
2. Putting the index, css, and image files in ALL public locations on the server
3. Completely deleting all files, and the add-on domain and adding it again
4. Changing the file codes from uni-8, ascii, etc.
5. Checking both the index and css to make sure they're valid, which they are.
6. Clearing all browser history, cache, and temp files.
7. Adding <Files *.css
AddType exp=*.css type=text/css
</Files to a .nsconfig file
8. Adding AddType text/css .css to .htcaccess
9. Creating a directory in my main domain and linking to that in the stylesheet, then tried creating a directory in my add-on domain and linking to that
10. Using full path names to link to in the stylesheet
11. Checked that when the .css is viewed in the browser it's a text/css and not text/html
12. Checked with Firebug for errors and it says Failed to load source for: http://www.daphnelink.com/stylesheet.css But I can visit the file fine, even after renaming...so, I'm not sure what to do with this error.
I should also mention that the domain is an add-on domain on justhost servers, so it's like a subdomain, since I have another main domain (hopefully this makes sense).
Example: I already have www.mysiteOne.com, but I needed hosting for mysiteTwo.com, so I pointed the nameservers to mysiteTwo.com as well, to use the hosting on justhost, and created mysiteTwo.com as an add-on under mysiteOne.com. mysiteTwo.com can be visited normally as mysiteTwo.com, instead of a regular subdomain like mysiteTwo.mysiteOne.com.
Anyway, I also found that some people say this could be a problem with my server, (Apache on justhost in my case). If so, how do I fix this? Do I need to email justhost, and if so, what do I need to tell them in particular to fix the problem?
Lastly, I should also mention that I had a different css and index file last week and everything loaded fine, and when I created this new css and index file for a different layout this week, I got this issue. So, this problem wasn't happening last week.
Thanks in advance for anyone that can help me & apologies for the length, but I tried to be as detailed as possible.
Site (http://www.daphnelink.com)
CSS File (http://www.daphnelink.com/stylesheet.css)
I'll edit this post to add the code if needed; like I mentioned it's all been validated against w3.