• I just made a default install of WP at this URL: https://64.91.227.98/~spitting/
    The only thing I have done is to make a post and set up some users. No changes to any of the templates at all. Why won’t the CSS display in Firefox? It works in IE, so I don’t think it’s a configuration issue.
    I searched the forum, but everyone seemed to be having trouble with the CSS switcher plug-in and my problem is with the default install.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Errors
    URI : https://64.91.227.98/~spitting/
    Line: 12
    File not foundhttps://64.91.227.98/~spitting/wp-layout.css: You can’t import an HTML document

    Your server is probably configured to serve files with the extension .css as text/html instead of text/css or atleast something that is not text/css.

    Yes, Taranis, you do, but they are not importing the css. Try linking to the css in your index page similar to how you have those pages that do work.

    I just verified that spitting sends text/html for css and commspot does not, it sends text/css as expected. Are you using virtual domains with different mime configurations?

    Thread Starter taranis

    (@taranis)

    The mime configurations should be the same, but I will double-check with the server admin to be sure. Both of those accounts are just child accounts of a main account I have on the server. They were created by me in the same way.
    I will check the mime configurations now.
    Thanks for the help!

    I noticed that when I tried to link to a stylesheet that had a space in the name, Firefox would break it. I.E. could handle it but, not Firefox. I even tried a “%20” in the ref in the HTML but, no luck. When I renamed back to a single word, it picked up my styles no problem. I’m not sure if this is the case, hope it helps.

    Thread Starter taranis

    (@taranis)

    Thanks dean! I don’t think that is the issue here, but it’s good to know.
    My host is looking at the problem now. They seem to think it’s a server config issue and are just trying to track it down now.

    hi. I’m having exactly the same problem with a default install not displaying css in firefox, but displaying fine in Safari. I just updated to wp1.2 from wp1.01, but actually went with a full re-install and then just imported the database. So I know this is not likely to be a config issue, as far as I can tell, as it was working fine in firefox prior to the upgrade. Anybody got any ideas?

    Well omjn in your index,php in the @ import you have a forward slash before the word wp-layout.css. That is an error.

    I’m sorry. Did I miss something? The slash is in the vanilla index.php as well, and all my archives include it. I deleted it anyhow but it makes no difference to the issue. Any better ideas?
    thanks for your response
    michael

    Thread Starter taranis

    (@taranis)

    Well, I submitted the bug to Mozilla and this is what they had to say:
    “Sorry, but it is a mime type error on your server. You’re serving the CSS as text/html.
    In standards rendering modes (with DOCTYPE), Mozilla will ignore the CSS because the mime type is wrong. In quirks rendering modes (no DOCTYPE), it will let you get away with it for compatibilty with older web sites.”
    So, I guess the problem is on the server. Bizarre. None of my other sites display this issue. Back to my host I go.

    Mine have always worked fine and I use Firefox. One thing I noticed different in yours than mine is that you have “xml:lang=”en” lang=”en”” included in the html tag. Could that affect it?

    Oh I didn’t see your last message…

    Anonymous

    I was having the same problem. CSS was not diaplying at all in Mozilla or Firefox. I actually run my own dedicated server so I have access to configs of all sorts. This is what I tried out.
    I was POSITIVE the CSS file was being served as text/plain as Firefox repoted, so something was going wrong.
    To try and solve this I double checked that the mime types for Apache were set correctly.
    After this didn’t work, I added an .htaccess file containing: AddType text/css .css.
    The thing was that I added a ?123123 to the end of the .css file so that I knew it wasn’t being cached. Voila! Looks like the .htaccess file did the trick but I was still seing the old page, so when I manually refreshed by adding ?random-stuff the new page came through.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘CSS doesn’t display in Firefox’ is closed to new replies.