clord Posted March 8, 2007 Share Posted March 8, 2007 Hi all -I have a web site that I just finished developing. During development, I had the website in a folder on my local computer with a sub-folder(css) for storing CSS files.I tested the site using both IE and FireFox and it displayed perfectly in both.My problem is that once I move it to my web server, IE still displays it just fine, but FireFox acts as though the CSS files don't exist. The content appears, but without the CSS files being applied.I even changed my references to the CSS files to be explicit paths instead of relative paths. Still IE is fine and FireFox doesn't seem to find the CSS files.I'm a little confused since it all worked fine when the site was on my local computer.Any ideas?The site can be found at www.apeasy.com/newThanks. Link to comment Share on other sites More sharing options...
aspnetguy Posted March 8, 2007 Share Posted March 8, 2007 ff usually opens css in the browser but prompted me to download it so I ran it through the w3c validator and got thishttp://jigsaw.w3.org/css-validator/validat...;usermedium=all Link to comment Share on other sites More sharing options...
clord Posted March 8, 2007 Author Share Posted March 8, 2007 Thanks!I'm still abit of a newbie..would "I/O Error: Unknown mime type : application/octet-stream" suggest a server issue, or CSS issue? Link to comment Share on other sites More sharing options...
ste Posted March 8, 2007 Share Posted March 8, 2007 try renaming the css file without the underscore Link to comment Share on other sites More sharing options...
clord Posted March 8, 2007 Author Share Posted March 8, 2007 try renaming the css file without the underscoreI have renamed the css file. no effect. Thanks for the reply. Link to comment Share on other sites More sharing options...
aspnetguy Posted March 8, 2007 Share Posted March 8, 2007 Thanks!I'm still abit of a newbie..would "I/O Error: Unknown mime type : application/octet-stream" suggest a server issue, or CSS issue?I am thinking it has something to do iwth how you saved it. What prgram did oyu use to write the CSS file? The problem is Firefox is not accepting it as a true CSS file. Ie is easy going and will try and work with whatever you give it. That can be misleading or give the impression that the code is ok. Link to comment Share on other sites More sharing options...
clord Posted March 8, 2007 Author Share Posted March 8, 2007 I am thinking it has something to do iwth how you saved it. What prgram did oyu use to write the CSS file? The problem is Firefox is not accepting it as a true CSS file. Ie is easy going and will try and work with whatever you give it. That can be misleading or give the impression that the code is ok.The CSS was an open source script. I have altered parts with Dreamweaver. (I learn best by seeing the results first then changing or adding to what is there) Link to comment Share on other sites More sharing options...
aspnetguy Posted March 8, 2007 Share Posted March 8, 2007 open it up in dreamweaver (the stylesheet) then open up notepad. Copy and paste into notepad and save it and upload it and see if that makes a difference. Link to comment Share on other sites More sharing options...
clord Posted March 8, 2007 Author Share Posted March 8, 2007 Copy and paste into notepad has no effect.thanks for the reply Link to comment Share on other sites More sharing options...
ste Posted March 8, 2007 Share Posted March 8, 2007 did you try taking out that last line in your css file? the one that doesnt validate Link to comment Share on other sites More sharing options...
ste Posted March 8, 2007 Share Posted March 8, 2007 the css works for this page http://www.apeasy.com/ where the css file is in the root directory but for pages where the css files are in this folder: http://www.apeasy.com/new/css/ all the files there seem to just open a save prompt when i try and open them in the browsermaybe try moving the location of these css files. altough im just clasping at straws here Link to comment Share on other sites More sharing options...
clord Posted March 8, 2007 Author Share Posted March 8, 2007 Tried taking out the last line and moving the new layout to the root along with the css files. nadathanks for the reply Link to comment Share on other sites More sharing options...
ste Posted March 8, 2007 Share Posted March 8, 2007 if you cant find another way you could put the css in the head of the html. altough i would only do that if you cant find another solution Link to comment Share on other sites More sharing options...
clord Posted March 8, 2007 Author Share Posted March 8, 2007 any problems that could occur with that method ste? Link to comment Share on other sites More sharing options...
ste Posted March 8, 2007 Share Posted March 8, 2007 you will have larger html filesif you need to do it place the contents of your css file in between <!-- and --><style type="text/css"><!----></style> Link to comment Share on other sites More sharing options...
jesh Posted March 8, 2007 Share Posted March 8, 2007 Sorry to jump in here, but the problem seems to be that the server thinks the file is of type application/octet-stream (i.e. a binary file) rather than a text file. If you've saved the contents of the file with Notepad, as aspnetguy suggested, then the file on your computer should be a text file. Perhaps, if the server is running Unix/Linux rather than Windows, there may be a conflict happening when you are transferring the file over FTP. You might check for a setting in your FTP program that allows you to transfer files over as text as opposed to binary (or vice-versa).You might also try saving the file, using Notepad again, as a txt file rather than a css file. Then, once the file is saved, change the extension from .txt to .css. Alternatively, you might try saving the file as .txt and uploading that to your server and changing the reference to the stylesheet to this: <link rel="stylesheet" type="text/css" href="layout4setup.txt" /> These are just ideas to get the server thinking that the file is a text file rather than a binary file. Most likely, however, the problem is occuring in the FTP transaction as I mentioned above. Link to comment Share on other sites More sharing options...
clord Posted March 8, 2007 Author Share Posted March 8, 2007 Thanks for the ideas jesh.I'm not using an FTP program to transfer the files, we actully host the web site here. The box that we are hosting it on is running windows.No luck on renaming and changing the reference either..Thanks for the reply Link to comment Share on other sites More sharing options...
clord Posted March 9, 2007 Author Share Posted March 9, 2007 Problem is fixed. The coding was not the problem, it was our servers capabilities. We had the ISP across in the office from us host it and it's working great!Thanks for all the help! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now