php - CakePhp CSS problem! -


Is not it weird?

It works in IE: This is a firefox specific problem.

Your CSS file is not output to the content type: text / css header, from which Firefox ignores it as a style sheet. You will see that effect warning in Firefox's error console

I do not know the cake, but I'm sure there is a basic way to solve it.

Must add a quick fix

  & lt ;? Php header ("content-type: text / css"); ? & Gt; At the top of   

cake.generic.css (if this is a PHP file).

If this is a real CSS file and does not have a rewritten URL (as I said, I do not know the cake), your web server does not care about sending the right content type - maybe fixed To admin, some

If the administrator can not fix this, you can try adding a .htaccess file to your project (or existing editing)

  AddType text / css.  

Comments