" When a page using a strict document type declaration (e.g. HTML 4.01
Strict) links to an external style sheet (using <link>, @import, etc)
Mozilla will load the style sheet only if it is served with a MIME type of
"text/css". Style sheets served with other MIME types, like text/plain,
application/x-pointplus, etc. will not be loaded. To add the proper css mime
type to an Apache web servers, add "text/css css" to the system mime.types
file. Or if you can't do that, add "AddType text/css .css" to your .htaccess
file. "

It was intentionally implemented.


"Ronald Buckman" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Markus Brueckner wrote:
>
> > S�ren Kuklau wrote:
> >
> >> So there we have it. Since 0.9.7, the MIME type behaviour of Mozilla is
> >> stricter. CSS with text/plain MIME type will be ignored.
> >
> >
> > Not really. Only if you use HTML 4.0 STRICT. Else all will work even
> > without text/css (according to the release notes).
> >
> > Also it shouldn't work with the relative paths either.  I assume that'S
> > not the source of his problems.
> >
> > Markus
> >
>
> I've also had a problem with external stylesheets not working on 0.9.7
> when the DTD was set to the following
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd";>
>
> and the server's mime type for .css was set to text/plain .
>
> If, you take the second quoted portion out of the DOCTYPE statement, the
> stylesheet would work, since the browser would render the page in quirks
> mode.
>
>



Reply via email to