CSS not displaying in Mozilla (7 posts)

  1. DianeV
    Posted 11 years ago #

    I installed WordPress, moved the index.php to the root directory, got it working, and restyled the stylesheet. I now find that the styles are not displaying in Mozilla or Firefox (they're fine in Opera and IE 6). I've tried plenty, but cannot seem to sort this out.
    Any faintest clue of what I've botched here?

  2. DianeV
    Posted 11 years ago #

    Okay, I've come up with something. First, the versions of PHP version mySQL are adequate to run WordPress (and, in fact, it *is* functioning). Mozilla/Firefox will display per the stylesheet if I replace the current DTD:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    So, what happens if I do this? I assume the PHP will parse, but will the RSS feeds no longer work, will I be thrown out of the "hip enough to use xhtml" club or something else drastic?
    Sorry; it's been a long day trying to debug this.

  3. chuyskywalker
    Posted 11 years ago #

    No one will throw you out.
    If it makes it work, do it and go to bed and sleep on it. I took a quick peek and see no reason for this not to be loading your CSS.
    I do, however, imagine it is a server side problem with getting/sending the CSS file.
    What it is though, I haven't the fainest idea. :-\ Sorry.

  4. Anonymous
    Posted 11 years ago #

    Interesting, since no other sites on the server have this difficulty. Nor, apparently, do other WordPress blogs.
    I'm *assuming* that changing to the 4.01 DTD will not affect the RSS feeds. True?
    Thanks; I will sleep on it, and hope to come up with a workable answer, as I do like the coding. Thanks again.

  5. AlHo
    Posted 11 years ago #

    Your stylesheet is served as Content-Type: text/plain, which seems to be the problem.

  6. AlHo
    Posted 11 years ago #

    See also http://wordpress.org/support/3/590 for one way to solve this.

  7. DianeV
    Posted 11 years ago #

    By coincidence, I just learned the same thing.
    On our virtual private server, the MIME types are controlled by a file called mime.types, which is in the same directory as the httpd.conf file.
    Found the precise coding here:
    Add this to the mime.types file:
    text/css css
    then restart apache.
    Presto, fixed.
    Thanks a million for your help. I do so love WordPress.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.