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

Netscape and CSS - different person though

P: n/a
I cannot get Netscape (7.1) to use my stylesheet. The sheet works with IE
and Opera and when I preview using the HomeSite editor, but I cannot get
Netscape to see it. I even tried using an absolute URL, which still worked
with the other browsers but not Netscape. Any help would be greatly
appreciated.

http://216.157.99.176/test/forrer.html

Don't laugh too hard at the page, I just made it for fun while I learned
CSS.

robert
Jul 20 '05 #1
Share this Question
Share on Google+
14 Replies


P: n/a
robert4 <bo***@hotmail.com> wrote:
I cannot get Netscape (7.1) to use my stylesheet. The sheet works with IE
and Opera and when I preview using the HomeSite editor, but I cannot get
Netscape to see it. I even tried using an absolute URL, which still worked
with the other browsers but not Netscape. Any help would be greatly
appreciated.

http://216.157.99.176/test/forrer.html


Your server is sending http://216.157.99.176/test/main.css as

Content-Type: application/x-pointplus

It needs to be configured to send it as

Content-Type: text/css

instead. See also
http://css.nu/faq/ciwas-aFAQ.html#QA05
http://www.htmlhelp.com/faq/html/med...#garbled-media
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

politician n. one who double-crosses a bridge when he comes to it
Jul 20 '05 #2

P: n/a
Darin McGrew <mc****@stanfordalumni.org> wrote in
news:ca**********@blue.rahul.net:

Your server is sending http://216.157.99.176/test/main.css as

Content-Type: application/x-pointplus

It needs to be configured to send it as

Content-Type: text/css

instead. See also
http://css.nu/faq/ciwas-aFAQ.html#QA05
http://www.htmlhelp.com/faq/html/med...#garbled-media


I called my hosting company and they said that is something I have to
change in the meta tags. I have

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
and
<link rel="stylesheet" type="text/css" href="main.css" />

within the /head tag. Is there something else I need to add? Is there
something more specific I need to tell the hosting company? My server is
with hostcentric.
Jul 20 '05 #3

P: n/a
robert4 schrieb:
Darin McGrew <mc****@stanfordalumni.org> wrote in
news:ca**********@blue.rahul.net:
Your server is sending http://216.157.99.176/test/main.css as

Content-Type: application/x-pointplus

It needs to be configured to send it as

Content-Type: text/css

instead. See also
http://css.nu/faq/ciwas-aFAQ.html#QA05
http://www.htmlhelp.com/faq/html/med...#garbled-media

I called my hosting company and they said that is something I have to
change in the meta tags. I have

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
and
<link rel="stylesheet" type="text/css" href="main.css" />

within the /head tag.


This is total nonsense. They're either clueless or too lazy to make a
simple server adjustment.

Is there something else I need to add? Is there
something more specific I need to tell the hosting company? My server is
with hostcentric.


You shouldn't have to tell your hosting company anything, it's THEIR
business to configure the server correctly and sent CSS with the correct
MIME type, which is text/css as Darin mentioned. Hosts these days...
Matthias
Jul 20 '05 #4

P: n/a
DU
robert4 wrote:
Darin McGrew <mc****@stanfordalumni.org> wrote in
news:ca**********@blue.rahul.net:
Your server is sending http://216.157.99.176/test/main.css as

Content-Type: application/x-pointplus

It needs to be configured to send it as

Content-Type: text/css

instead. See also
http://css.nu/faq/ciwas-aFAQ.html#QA05
http://www.htmlhelp.com/faq/html/med...#garbled-media

I called my hosting company and they said that is something I have to
change in the meta tags. I have

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
and
<link rel="stylesheet" type="text/css" href="main.css" />

within the /head tag. Is there something else I need to add? Is there
something more specific I need to tell the hosting company? My server is
with hostcentric.

You may use this excellent reference too when contacting your hosting
company

Properly Configuring Server MIME Types
http://devedge.netscape.com/viewsource/2003/mime-types/

"Some other web browsers, such as Microsoft® Internet Explorer, try to
allow for misconfigured web servers and applications by guessing what
the correct MIME type should be. This has sheltered many web
administrators from their own errors, since Internet Explorer will
continue to process content as expected even though the web server is
misconfigured, e.g. displays an image which is reported to be plain text.
Why browsers should not guess MIME types

Apart from violating the HTTP specification, it is a bad strategy for
browsers to guess MIME types for the following reasons:

1. Loss of control

If the browser ignores the reported MIME type, web administrators
and authors no longer have control over how their content is to be
processed.

For example, a web site oriented for web developers might wish to
send certain example HTML documents as either text/html or text/plain in
order to have the documents either processed and displayed as HTML or as
source code. If the browser guesses the MIME type, this option is no
longer available to the author. (...)
"
http://devedge.netscape.com/viewsource/2003/mime-types/

DU
Jul 20 '05 #5

P: n/a
On Fri, 18 Jun 2004 19:51:02 GMT, robert4 <bo***@hotmail.com> wrote:
Darin McGrew <mc****@stanfordalumni.org> wrote in
news:ca**********@blue.rahul.net:

Your server is sending http://216.157.99.176/test/main.css as

Content-Type: application/x-pointplus

It needs to be configured to send it as

Content-Type: text/css

instead. See also
http://css.nu/faq/ciwas-aFAQ.html#QA05
http://www.htmlhelp.com/faq/html/med...#garbled-media


I called my hosting company and they said that is something I have to
change in the meta tags. I have

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
and
<link rel="stylesheet" type="text/css" href="main.css" />

within the /head tag. Is there something else I need to add? Is there
something more specific I need to tell the hosting company? My server is
with hostcentric.


You've done everything correctly, it seems. They must set the server to
serve CSS as text/css and not application/x-pointplus or no one on their
server can properly use CSS.

Offer them a deal - they fix this, or you find another host. If they won't
serve a document as what it ought to be served as, what else will they do
to screw you up?
Jul 20 '05 #6

P: n/a
I wrote:
Your server is sending http://216.157.99.176/test/main.css as

Content-Type: application/x-pointplus

It needs to be configured to send it as

Content-Type: text/css

instead. See also
http://css.nu/faq/ciwas-aFAQ.html#QA05
http://www.htmlhelp.com/faq/html/med...#garbled-media

robert4 <bo***@hotmail.com> wrote: I called my hosting company and they said that is something I have to
change in the meta tags.


They are wrong.

You may be able to do it yourself. Your server appears to be running
Apache, so it may be as simple as adding the line

AddType text/css css

to your .htaccess file.

But the person at your hosting company that you talked to clearly didn't
understand HTTP.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"It said 'Insert disk #3', but only two will fit..."
Jul 20 '05 #7

P: n/a
On Fri, 18 Jun 2004 20:05:07 +0000 (UTC), Darin McGrew
<mc****@stanfordalumni.org> wrote:
You may be able to do it yourself. Your server appears to be running
Apache, so it may be as simple as adding the line

AddType text/css css

to your .htaccess file.


Yes, despite my previous post, if you can do a .htaccess file this is the
way to go.
Jul 20 '05 #8

P: n/a
Darin McGrew <mc****@stanfordalumni.org> wrote in news:cavhtj$59k$1
@blue.rahul.net:
You may be able to do it yourself. Your server appears to be running
Apache, so it may be as simple as adding the line

AddType text/css css

to your .htaccess file.

But the person at your hosting company that you talked to clearly didn't understand HTTP.


First I would like to say thanks for the help so far. I called again and
spent 30 minutes on the phone while they looked around and said nothing
was wrong on their end. They simply send files and the browser detects
the type. <sigh>

I tried adding the addtype line to the .htaccess file. Didn't help. I
didn't have that file on this server so I created it and put it in the
root directory with just that line as the text. I have verizon DSL and
am going to try and upload to their server just to prove them wrong.
Starting to get beaten down by this :^)

robert
Jul 20 '05 #9

P: n/a
Darin McGrew <mc****@stanfordalumni.org> wrote in
news:ca**********@blue.rahul.net:
Your server is sending http://216.157.99.176/test/main.css as

Content-Type: application/x-pointplus


After uploading my page to the verizon server and proving to them that
netscape loaded the page correctly from that server, they finally
admitted they were the problem and would try to figure out how to fix it.
I gave them the link you guys posted to the Netscape developer page
dealing with Mime-type errors, and they said they would look at it. I am
beginning to doubt their skills...

Thank you all very much for the help, I spent a long time on this
thinking I had messed up the syntax somehow and at least I have some
peace of mind.

I have one last question involving reading material. I think I have a
grasp on how to make the basic page, but that was the easy part. I need
a way to include scripting on my page and don't know what kind to
use/learn.

I will be posting small pictures on the website for people to purchase
and would like to have radio buttons for them to choose 4x6, 5x7, etc.
and then need the script to correctly tabulate the price, somehow get the
credit card info, and then send me the results.

I don't have a set timeframe and would really like to do this myself. I
have basic knowledge of C++ and didn't know if activeX controls could do
this, or Java or Perl. I know that Paypal offers a way to take credit
cards and will need to figure that part out later I think.

Based on the scripting demands of choosing multiple pictures, possible
multiple sizes of the same picture, calculating the total price, and
hopefully interfacing with some type of credit card system, what would be
the most efficient language to learn? The credit card interface could be
done manually if I need to. Flash could be a possibility also I guess.

I understand the size of the problem and love studying, so I am willing
to put in the time nessecary to learn it.

Thank you all for your help on both subjects.

robert
Jul 20 '05 #10

P: n/a
On Fri, 18 Jun 2004, robert4 wrote:
Content-Type: application/x-pointplus

Google will be happy to report that this was already discussed on
usenet as a problem in 1996, if not earlier.
http://ppewww.ph.gla.ac.uk/~flavell/...tent-type.html refers (to
take just one personal example).
After uploading my page to the verizon server and proving to them that ^^^^^^^

oh dear...
I gave them the link you guys posted to the Netscape developer page
dealing with Mime-type errors, and they said they would look at it. I am
beginning to doubt their skills...


"beginning"? The problem is over 8 years old, for heaven's sake.

Not your fault (other than doing business with an organisation that -
on the evidence that has reached me so far, at any rate - doesn't seem
to be able to tell the Internet from a hole in the ground).
Jul 20 '05 #11

P: n/a
*robert4* <bo***@hotmail.com>:

I need a way to include scripting on my page and don't know what kind to
use/learn.
PHP and Perl are probably the most popular serverside languages. Or some
Visual Basic variant on Microsoft servers.
I will be posting small pictures on the website for people to purchase
and would like to have radio buttons for them to choose 4x6, 5x7, etc.
That's *really* small. I even find 9×13 a bit too small.¹
and then need the script to correctly tabulate the price, somehow get the
credit card info, and then send me the results.
Whatever you decide to do, do it serverside.
I don't have a set timeframe and would really like to do this myself.


For most languages and tasks there are more or less sophisticated solutions
available. Many of them are free of charge and/or open source.

¹ "cm" left out intentionally.

--
To be or not to be---that's no question, it's a decision.
Jul 20 '05 #12

P: n/a
In article <ca**********@news.eusc.inter.net>,
DU <dr*******@hotWIPETHISmail.com> writes:
Why browsers should not guess MIME types


Because it opens the system wide to lots of viruses.

As found by Microsoft users around the world, to their cost.

And as comprehensively described in the MIME standards of 1992 and 1993,
before Microsoft ever took an interest in the 'net.

--
Nick Kew
Jul 20 '05 #13

P: n/a
robert4 wrote:
First I would like to say thanks for the help so far.**I*called*again*and
spent 30 minutes on the phone while they looked around and said nothing
was wrong on their end.**They*simply*send*files*and*the*browser*detec ts
the type.**<sigh>


The browser detects the type that the *server* sends in the Content-Type
header. This is part of the HTTP specification and cannot be ignored.
(Never mind that IE flagrantly violates it in some cases, particularly
choosing to ignore text/plain and taking a wild-ass guess at what the
content *might* be if it's not plain text, or looking at the URL as if it
were a Windows filename which is an assumption that can never be safely
made on the Web.)

--
Shawn K. Quinn
Jul 20 '05 #14

P: n/a
DU wrote:
http://devedge.netscape.com/viewsource/2003/mime-types/

"Some other web browsers, such as Microsoft® Internet Explorer, try
to allow for misconfigured web servers and applications by guessing
what the correct MIME type should be.


Opera 7.x also breaks the rfc on mime types unless you configure it
not to -- i.e., an opt-out instead of opt-in implementation. In
addition, Mozilla Firefox now breaks the rfc in the same way. This may
be limited to text/css (I haven't had time to run tests myself).

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #15

This discussion thread is closed

Replies have been disabled for this discussion.