Forum Moderators: open
Firefox wont import the css (Well i dont know exactlly what its doing but thats what appears to happen)
Just to check it was this i removed the doctype and design looks normal.
You can view the new website: <Sorry, no personal URLs. See Terms of Service [webmasterworld.com]> (see it in both ie and ff to see what i mean)
[edited by: tedster at 12:09 am (utc) on Feb. 12, 2006]
W3C Validator - HTML [validator.w3.org]
W3C Validator - CSS [jigsaw.w3.org]
text/css. In quirks mode (without the doctype) Firefox will accept CSS files sent with an incorrect MIME type such as text/plain or text/html. To test, open up the CSS file directly in the browser, then press Control + I (Page Info). The "Type" should say
text/css. If it says something else, you can change the MIME type yourself if you can use a .htaccess file by adding this: AddType text/css .css Otherwise contact your hosting company.
<Files *>
ForceType application/x-httpd-php
</Files>
If i remove this from my .htaccess it works, now the problem is how can i access my php files without using the .php extentsion e.g. just [whatever.com...]
text/html by default. If you can't place the CSS file in a directory where the ForceType isn't in operation, then you can specify the correct MIME type with PHP directly in the CSS file. You will also need to allow the file to be cached by the browser, as PHP removes cache headers and it would mean the CSS file would be called from the server for each page view, which would negate the advantage of a separate CSS file.
Try adding something like this to the top of the CSS file:
<?php
/* set MIME type */
header("Content-Type: text/css");
/* set caching to a reasonable value */
header("Cache-Control: must-revalidate");
$offset = 72000 ;
$ExpStr = "Expires: " .
gmdate("D, d M Y H:i:s",
time() + $offset) . " GMT";
header($ExpStr);
?> That should get you started. :)