WordPress.org

Ready to get started?Download WordPress

Forums

CSS not displaying in Mozilla (7 posts)

  1. DianeV
    Member
    Posted 9 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.
    http://developedtraffic.com/
    http://developedtraffic.com/wordpress/wp-layout.css
    Any faintest clue of what I've botched here?

  2. DianeV
    Member
    Posted 9 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">
    with:
    <!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
    Member
    Posted 9 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
    Unregistered
    Posted 9 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
    Member
    Posted 9 years ago #

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

  6. AlHo
    Member
    Posted 9 years ago #

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

  7. DianeV
    Member
    Posted 9 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:
    http://archivist.incutio.com/viewlist/css-discuss/20920
    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

Tags

No tags yet.