W3C home > Mailing lists > Public > www-style@w3.org > May 1999

RE: linking to style sheets

From: Gussey, Suzanne <suzanne.gussey@nomura.co.uk>
Date: Wed, 5 May 1999 13:19:14 +0100
Message-ID: <60A8317A25CFD211811D00805FA763FD29C8C9@ns0039>
To: "'Chris Ridd'" <Chris.Ridd@MessagingDirect.com>, "'www-style@w3.org'" <www-style@w3.org>
Chris,

Thanks a lot - have looked at the server and it is the mime type. Can't
think why it would have .css for x-pointplus though!

Zan

-----Original Message-----
From: Chris Ridd [mailto:Chris.Ridd@MessagingDirect.com]
Sent: 05 May 1999 13:02
To: Gussey, Suzanne
Subject: Re: linking to style sheets 


On Wed, 05 May 1999 12:27:06 BST, "Gussey, Suzanne" wrote:
> I am trying to link to a basic style sheet that sits in a common area from
> numerous web pages in different directories. 
> 
> This works in IE but in Netscape if the .css file is not in the same
> directory I get an error the first time on accessing a page. This says
that
> it needs a plugin (x-pointplus) which is a java viewer for Powerpoint
> documents!. If you do cancel the file comes through but without the
> formatting from the style sheet. If you reload the page then it is fine.
> 
> I don't want to have to put a copy of the .css file in each directory as
> that would partly defeat the purpose of using the style sheets as they
would
> all have to be changed in the future. 
> 
> Any ideas
> 
> Regards
> Zan
> 

Style sheets can of course be in different directories from the HTML 
files.

Check the MIME type that your web server is configured to send back for 
.css files. It is likely to be wrong. Internet Explorer incorrectly 
ignores the MIME type sent to it by the server, and instead guesses 
based on the file extension database in Windows. I don't know what 
Netscape may be doing.

Chris
Received on Wednesday, 5 May 1999 08:19:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:59 GMT