Digital Consumption


 Charles Darke | 6 August 2006
Just installed Wordpress. CSS didn't work in Firefox although it rendered properly under IE.

I've temporarily fixed it by modifying the header to remove the XHTML declarations (deleted the DTD and changed <html... > to <html>). Seems to work for now. Will need to investigate what the problem is. 


Comments (2)

Figured it out. I have apache configured to parse .css files as php files (so that I can have dynamic css files).

Unfortunately, while IE happily accepts css files, Firefox refuses to render the css under xhtml when it's not delivered as type text/css.
  Written by Charles Darke at 11:21pm, 7 September 2006.
I fixed the WordPress display problem. My solution was to take out the following line in httpd.conf:

AddType application/x-httpd-php .css

and instead include it in the .htaccess in my css directory.

Most of the time I expect not to use PHP for CSS and so I will include a .htaccess file where necessary.

To be fair, it's not a WordPress problem, but more of a Apache config or Firefox problem. However, I don't see the real need to use xhtml for a blog package. Also, I think the way Firefox treats css files without the text/css mimetype could be relaxed (as IE does).
  Written by Charles Darke at 7:52am, 8 September 2006.