By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 983 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

Netscape Won't Load Stylesheets

P: n/a
I'm using Netscape 7.02 for Mac, and observed the same problem on some
version of Mozilla under Red Hat.

Netscape won't load the stylesheet for this page:
http://www.efn.org/~bsharvy/ecolibparty.html

Strangely, it loads the exact same stylesheet as linked here:
http://www.efn.org/~bsharvy/dummies.html

So, the problem isn't with the stylesheet since it loads correctly for
some pages. Opera 5.0 for Mac displays all the pages correctly.

The same failure happens here (different stylesheet):

http://www.efn.org/~bsharvy/rsharvy/syll.html
Jul 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Ben Sharvy wrote:
I'm using Netscape 7.02 for Mac, and observed the same problem on some
version of Mozilla under Red Hat.

Netscape won't load the stylesheet for this page:
http://www.efn.org/~bsharvy/ecolibparty.html

Strangely, it loads the exact same stylesheet as linked here:
http://www.efn.org/~bsharvy/dummies.html

So, the problem isn't with the stylesheet since it loads correctly for
some pages. Opera 5.0 for Mac displays all the pages correctly.

[snip]

I had a similar problem. I received the following help:

http://groups.google.com/gr*********...psis.dur.ac.uk

I don't know if yours is the same problem. (My hosting service was serving
CSSs as text/plain, not text/css. They admitted it and changed it and the
problem went away).

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #2

P: n/a
Ben Sharvy wrote:

Netscape won't load the stylesheet for this page:
http://www.efn.org/~bsharvy/ecolibparty.html

Strangely, it loads the exact same stylesheet as linked here:
http://www.efn.org/~bsharvy/dummies.html


As another poster suggested, the problem is an incorrect MIME type on
the server. The reason the stylesheet loads in the second page but not
the first is due to the DOCTYPE. The first page triggers standards
mode, which requires the correct type. The second page triggers quirks
mode, which doesn't.

Don't get around your problem by changing the DOCTYPE on the first page,
that would be fixing the wrong problem. Contact the hosting service and
tell them to fix the Content-type for .css files. It should be
text/css, not text/plain.

--
To email a reply, remove (dash)ns(dash). Mail sent to the ns
address is automatically deleted and will not be read.

Jul 20 '05 #3

P: n/a
kchayka wrote:
[snip]
As another poster suggested, the problem is an incorrect MIME type on
the server. The reason the stylesheet loads in the second page but
not the first is due to the DOCTYPE. The first page triggers
standards mode, which requires the correct type. The second page
triggers quirks mode, which doesn't.

[snip]

I was that other poster, and I too specifiy "standards mode" (for 4.01
Transitional).

I've been assuming that this is the right thing to do (that is, not specify
"quirks mode"). But I never really understood the pros and cons. I assumed it
would help me validate that I was producing forward-looking material. But it
also appeared to mean that I may therefore produce material that IE5 & IE6
(etc) rendered differently. (IE5 box model, etc). (I've read the MS pages on
the topic, but they say "what" happens, and don't really answer "why" do one
thing or the other).

Is there a downside to "standards mode"?

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #4

P: n/a
"Barry Pearson" <ne**@childsupportanalysis.co.uk> wrote in message news:<lE*****************@newsfep1-win.server.ntli.net>...
Ben Sharvy wrote:
I'm using Netscape 7.02 for Mac, and observed the same problem on some
version of Mozilla under Red Hat.

Netscape won't load the stylesheet for this page:
http://www.efn.org/~bsharvy/ecolibparty.html

Strangely, it loads the exact same stylesheet as linked here:
http://www.efn.org/~bsharvy/dummies.html
I had a similar problem. I received the following help:

http://groups.google.com/gr*********...psis.dur.ac.uk

I don't know if yours is the same problem. (


I don't think the server can be the problem, because different HTML
documents linking to the *same* stylesheet do display the styles
correctly.
Jul 20 '05 #5

P: n/a
Barry Pearson wrote:

Is there a downside to "standards mode"?


None that I can think of. You have a better chance of getting
consistent results using standards mode than quirks mode.

--
To email a reply, remove (dash)ns(dash). Mail sent to the ns
address is automatically deleted and will not be read.

Jul 20 '05 #6

P: n/a
Ben Sharvy wrote:
"Barry Pearson" <ne**@childsupportanalysis.co.uk> wrote in message
news:<lE*****************@newsfep1-win.server.ntli.net>...
Ben Sharvy wrote:
> I'm using Netscape 7.02 for Mac, and observed the same problem on
> some version of Mozilla under Red Hat.
>
> Netscape won't load the stylesheet for this page:
> http://www.efn.org/~bsharvy/ecolibparty.html
>
> Strangely, it loads the exact same stylesheet as linked here:
> http://www.efn.org/~bsharvy/dummies.html

I had a similar problem. I received the following help:

http://groups.google.com/gr*********...psis.dur.ac.uk

I don't know if yours is the same problem. (


I don't think the server can be the problem, because different HTML
documents linking to the *same* stylesheet do display the styles
correctly.


Someone else has already responded. The page that doesn't work starts:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">

That forces certain browsers to obey rules strictly. (It is actually the 2nd
line, with the URL, that tells them to do that). As it happens, IE6 still
doesn't do obey the rules strictly, and will use a CSS that is being served as
text/plain. Mozilla Firebird and perhaps other browsers do take a stricter
line, and refuse to use the CSS.

Interestingly, Mozilla Firebird refuses to use that CSS in standards mode. But
the "web developer's" toolbar you can add to Firebird will happily show you
the contents of the CSS! It has no trouble obtaining the CSS - it simply
refuses to use it. Which is presumably correct practice, but a bit irritating
when you first hit it.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.