Hi all, My lab website ( http://www.zoo.utoronto.ca/changlab/ ), which works great in Internet Explorer, has no formatting at all when loaded up in Firefox. Now, I'm an layman when it comes to web pages, but I think it has something to do with the css file. However, I'm not savvy enough to determine why the websites works in one browser and not in the other. I adore Firefox, but why does it have to be a bitch when it's me. Here is a HTML analysis of the CSS file: http://jigsaw.w3.org/css-validator/validator?uri=http://www.zoo.utoronto.ca/changlab/ Thanks all, PS: I did not design the site myself, so I'm just trying to fix it so it works with both.
Firefox's javascript console says this. You css file is not even loading. Error: The stylesheet http:// www .zoo.utoronto.ca/changlab/css/style.css was not loaded because its MIME type, "text/plain", is not "text/css". Source File: http:// www .zoo.utoronto.ca/changlab/ Line: 0
To extend on smallbuzz's post, your web server is mis configured. Server response headers are supposed to overrule any other type statement, such as the meta http-equiv or the attribute, type="text/css", in the link element. IE quite wrongly ignores the header. An example of this IE error may be seen at No, Internet Explorer Did Not Handle It Properly—Content Type: text/plain. This is an important reason for all development to take place in a standards compliant browser like Firefox. A PoS like IE will lead you away from the paths of righteousness . Response Headers - http://www.zoo.utoronto.ca/changlab/css/style.css Date: Thu, 09 Nov 2006 06:36:00 GMT Server: Apache/1.1.3 BSDI/3.0 Content-Type: [color=red]text/plain[/color] Content-Length: 4258 Last-Modified: Thu, 11 May 2006 17:00:19 GMT 200 OK Code (markup): Isn't that an awfully old version of Apache? If your IT Dept. or hosting co. won't bring that up to date (v1.3.34 or 2.0.59 or 2.2.x) they're incompetent. Find someone else to host your site. Look in the Apache configuration file, httpd.conf, for this line: TypesConfig /etc/mime.types Code (markup): The file (the path and filename may be different) should exist on your server. If it doesn't, go to section 2 in httpd.conf (main server configuration) and add this line: AddType text/css .css Code (markup): There should be other similar lines. Just put that in amongst them. You will need root privilege. cheers, gary
I should have mentioned that after editing the httpd.conf file, you'll need to cause Apache to read the configuration anew. Apache installations usually include a script called apachectl. If you run "apachectl graceful", it will cause Apache to reread the config without shutting down. cheers, gary