firefox and CSS files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Russ Wickstrom

    firefox and CSS files

    I have a webpage (http://www.clergytaxes.com/taxwarn.html) that looks fine
    in IE but isn't applying any of the style in Firefox.

    I am still in the process of converting this site to a stylesheet based
    design, and cannot see my problem.

    The stylesheet is in the images folder on the same server.
    (http://www.clergytaxes.com/images/ct.css)

    Could someone steer me in the right direction please?

    Thank you,

    Russ Wickstrom
    Minneapolis, MN

    rkwickstrom@yah oo.com


  • Henri Sivonen

    #2
    Re: firefox and CSS files

    In article <10u0nb6a2raln3 8@corp.supernew s.com>,
    "Russ Wickstrom" <rwickstrom@acc ess4less.net> wrote:
    [color=blue]
    > I have a webpage (http://www.clergytaxes.com/taxwarn.html) that looks fine
    > in IE but isn't applying any of the style in Firefox.[/color]
    ....[color=blue]
    > Could someone steer me in the right direction please?[/color]

    Misconfigured server. MIME type of CSS files should be text/css and not
    text/plain.

    The MDN Web Docs site provides information about Open Web technologies including HTML, CSS, and APIs for both Web sites and progressive web apps.


    --
    Henri Sivonen
    hsivonen@iki.fi

    Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html

    Comment

    • Russ Wickstrom

      #3
      Re: firefox and CSS files

      I have tried it with both no type (as it is now) and with the
      'type="text/css"'

      This has made no difference.

      --Russ

      "Henri Sivonen" <hsivonen@iki.f i> wrote in message
      news:hsivonen-B4848A.00393709 012005@news.dna internet.net...[color=blue]
      > In article <10u0nb6a2raln3 8@corp.supernew s.com>,
      > "Russ Wickstrom" <rwickstrom@acc ess4less.net> wrote:
      >[color=green]
      > > I have a webpage (http://www.clergytaxes.com/taxwarn.html) that looks[/color][/color]
      fine[color=blue][color=green]
      > > in IE but isn't applying any of the style in Firefox.[/color]
      > ...[color=green]
      > > Could someone steer me in the right direction please?[/color]
      >
      > Misconfigured server. MIME type of CSS files should be text/css and not
      > text/plain.
      >
      > http://www.mozilla.org/docs/web-deve...tylenotworking
      >
      > --
      > Henri Sivonen
      > hsivonen@iki.fi
      > http://iki.fi/hsivonen/
      > Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html[/color]



      Comment

      • Beauregard T. Shagnasty

        #4
        Re: firefox and CSS files

        Russ Wickstrom wrote:
        [color=blue]
        > I have tried it with both no type (as it is now) and with the
        > 'type="text/css"'
        >
        > This has made no difference.[/color]

        Just after you load the page in Firefox, go open the JavaScript
        console, on the Tools menu. You will see the error:

        Error: The stylesheet http://www.clergytaxes.com/images/ct.css was not
        loaded because its MIME type, "text/plain", is not "text/css".

        Your host is not serving CSS files correctly. Contact them, and read
        this error to them.

        IE, of course, doesn't play by the rules. It should also reject the
        stylesheet.

        --
        -bts
        -This space intentionally left blank.

        Comment

        • Henri Sivonen

          #5
          Re: firefox and CSS files

          In article <10u110ojuhapt9 6@corp.supernew s.com>,
          "Russ Wickstrom" <rwickstrom@acc ess4less.net> wrote:
          [color=blue]
          > I have tried it with both no type (as it is now) and with the
          > 'type="text/css"'[/color]

          The attribute is not the issue. The MIME type sent by the server is.

          --
          Henri Sivonen
          hsivonen@iki.fi

          Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html

          Comment

          • Jón Fairbairn

            #6
            Re: firefox and CSS files

            Henri Sivonen <hsivonen@iki.f i> writes:
            [color=blue]
            > In article <10u110ojuhapt9 6@corp.supernew s.com>,
            > "Russ Wickstrom" <rwickstrom@acc ess4less.net> wrote:
            >[color=green]
            > > I have tried it with both no type (as it is now) and with the
            > > 'type="text/css"'[/color]
            >
            > The attribute is not the issue. The MIME type sent by the server is.[/color]

            To make this explicit, one can do something like this:

            wget -S --delete-after http://www.clergytaxes.com/images/ct.css
            --12:06:19-- http://www.clergytaxes.com/images/ct.css
            => `ct.css'
            Resolving wwwcache.cam.ac .uk... done.
            Connecting to wwwcache.cam.ac .uk[131.111.8.1]:8080... connected.
            Proxy request sent, awaiting response...
            1 HTTP/1.0 200 OK
            2 Date: Sun, 09 Jan 2005 11:37:20 GMT
            3 Server: Apache/1.3.26 (Unix) mod_jk PHP/4.2.0 FrontPage/5.0.2.2510
            4 Last-Modified: Fri, 07 Jan 2005 21:38:06 GMT
            5 ETag: "105ffe-298-41df013e"
            6 Accept-Ranges: bytes
            7 Content-Length: 664
            8 Content-Type: text/plain
            9 X-Cache: MISS from iota.wwwcache.c am.ac.uk
            10 X-Cache-Lookup: MISS from iota.wwwcache.c am.ac.uk:8080
            11 Proxy-Connection: close

            100%[=============== =============== =============>] 664 648.44K/s ETA 00:00

            12:06:21 (648.44 KB/s) - `ct.css' saved [664/664]

            Removing ct.css.

            Since the server is apache, you can probably get it to set
            the type by incanting the appropriate magic spells in
            ..htaccess (google for that).

            --
            Jón Fairbairn Jon.Fairbairn@c l.cam.ac.uk

            Comment

            • Alan J. Flavell

              #7
              Re: firefox and CSS files

              On Sat, 8 Jan 2005, Beauregard T. Shagnasty wrote:
              [color=blue]
              > IE, of course, doesn't play by the rules. It should also reject the
              > stylesheet.[/color]

              By my reading of the rules, it *must* (not merely "should") reject the
              stylesheet when presented with the wrong media type from the server.

              Comment

              • Beauregard T. Shagnasty

                #8
                Re: firefox and CSS files

                Alan J. Flavell wrote:[color=blue]
                > On Sat, 8 Jan 2005, Beauregard T. Shagnasty wrote:
                >[color=green]
                >> IE, of course, doesn't play by the rules. It should also reject
                >> the stylesheet.[/color]
                >
                > By my reading of the rules, it *must* (not merely "should") reject
                > the stylesheet when presented with the wrong media type from the
                > server.[/color]

                Of course. I was being polite. <g>

                (Then again, there are all these posts... "how do I force.." and I
                don't like to force anything...)

                If IE did reject all non text/css stylesheets, my major ISPs webmail
                program would generate about two million support calls today.

                From Firefox:
                Warning: The stylesheet https://[MajorIspHere]/css/styles.css was
                loaded as CSS even though its MIME type, "applicatio n/x-pointplus", is
                not "text/css".

                So Firefox will load an x-pointplus stylesheet!

                --
                -bts
                -This space intentionally left blank.

                Comment

                • Henri Sivonen

                  #9
                  Re: firefox and CSS files

                  In article <34g2d7F4am31gU 1@individual.ne t>,
                  "Beauregard T. Shagnasty" <a.nony.mous@ex ample.invalid> wrote:
                  [color=blue]
                  > From Firefox:
                  > Warning: The stylesheet https://[MajorIspHere]/css/styles.css was
                  > loaded as CSS even though its MIME type, "applicatio n/x-pointplus", is
                  > not "text/css".
                  >
                  > So Firefox will load an x-pointplus stylesheet![/color]

                  In the quirks mode, yes.

                  --
                  Henri Sivonen
                  hsivonen@iki.fi

                  Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html

                  Comment

                  • Alan J. Flavell

                    #10
                    Re: firefox and CSS files

                    On Mon, 10 Jan 2005, Beauregard T. Shagnasty wrote:
                    [color=blue]
                    > Warning: The stylesheet https://[MajorIspHere]/css/styles.css was
                    > loaded as CSS even though its MIME type, "applicatio n/x-pointplus",
                    > is not "text/css".[/color]

                    Mercy! Is that piece of nonsense still going on? I was grumbling
                    about that in around 1996 already, and last saw it happening two or
                    three years back. I suppose this goes into the same class as the ISP
                    who proudly told their customer "We don't support CSS". Scarcely
                    credible, what?

                    Comment

                    • Beauregard T. Shagnasty

                      #11
                      Re: firefox and CSS files

                      Alan J. Flavell wrote:[color=blue]
                      > On Mon, 10 Jan 2005, Beauregard T. Shagnasty wrote:
                      >[color=green]
                      >> Warning: The stylesheet https://[MajorIspHere]/css/styles.css was
                      >> loaded as CSS even though its MIME type,
                      >> "applicatio n/x-pointplus", is not "text/css".[/color]
                      >
                      > Mercy! Is that piece of nonsense still going on? I was grumbling
                      > about that in around 1996 already, and last saw it happening two
                      > or three years back. I suppose this goes into the same class as
                      > the ISP who proudly told their customer "We don't support CSS".[/color]

                      Yep, still going on. I've reported it at their support center oh about
                      every two months for a couple of years or so. Such a simple change to
                      the servers... no luck. (They are Netscape-Enterprise/6.0 running Sun
                      Solaris, according to Netcraft.)
                      [color=blue]
                      > Scarcely credible, what?[/color]

                      All of their web pages are crap. Henri points out that FF will read
                      the css in quirks mode (which I didn't remember). For the most part,
                      these pages aren't even worthy of being called "quirky."

                      --
                      -bts
                      -This space intentionally left blank.

                      Comment

                      Working...