Help - Search - Members - Calendar
Full Version: Netscape Has No Style
Movable Type Community Forum > Using Movable Type > Default Stylesheets
bdawson
What is it? Where is the error?

I can't remember if it ever worked. (I don't use Netscape.) Every other browser displays my blog like it should, but no style attributes show up in Netscape.

I know it should work. I've seen it on other sites! (It works on davebarry.com.)

Why doesn't it work on Venturpreneur.com ?

I don't know if I've screwed up the class tags or the style sheet itself.
TweezerMan
Mozilla Firefox reports the following in the JavaScript Console when your page is loaded:
QUOTE
Error: The stylesheet http://www.venturpreneur.com/weblogs/styles-site.css was not loaded because its MIME type, "text/html", is not "text/css".

You or your host need to configure the web server to serve .css files with a MIME type of "text/css".
bdawson
QUOTE (TweezerMan @ Jul 6 2004, 08:04 AM)
Mozilla Firefox reports the following in the JavaScript Console when your page is loaded:
QUOTE
Error: The stylesheet http://www.venturpreneur.com/weblogs/styles-site.css was not loaded because its MIME type, "text/html", is not "text/css".

You or your host need to configure the web server to serve .css files with a MIME type of "text/css".

That's pretty odd since the server serves up CSS files correctly for every other site on the same server. Apache's conf file correctly identifies css as text/css plus its in the meta tag!

For instance "actonbbq.com" and "susette.com" are on the same server and their css files are recognized.

Thanks for the pointer. Now I just have to figure out why Netscape doesn't like the css for this one site.
TweezerMan
It looks like you got the problem figured out now, but I'll just add this note about the other two sites you thought were displaying their stylesheets correctly:
QUOTE
For instance "actonbbq.com" and "susette.com" are on the same server and their css files are recognized.

Mozilla Firefox displayed the stylesheet for those sites, but it still didn't like them:
QUOTE
Warning: The stylesheet http://actonbbq.com/stylesheet.css was loaded as CSS even though its MIME type, "text/html", is not "text/css".

QUOTE
Warning: The stylesheet http://susette.com/styles.css was loaded as CSS even though its MIME type, "text/html", is not "text/css".

All three sites now appear to be displaying the stylesheets correctly in Mozilla Firefox with no errors reported.
bdawson
QUOTE (TweezerMan @ Jul 6 2004, 10:37 AM)
It looks like you got the problem figured out now, but I'll just add this note about the other two sites you thought were displaying their stylesheets correctly:
QUOTE
For instance "actonbbq.com" and "susette.com" are on the same server and their css files are recognized.

Mozilla Firefox displayed the stylesheet for those sites, but it still didn't like them:
QUOTE
Warning: The stylesheet http://actonbbq.com/stylesheet.css was loaded as CSS even though its MIME type, "text/html", is not "text/css".

QUOTE
Warning: The stylesheet http://susette.com/styles.css was loaded as CSS even though its MIME type, "text/html", is not "text/css".

All three sites now appear to be displaying the stylesheets correctly in Mozilla Firefox with no errors reported.

Dave,

Your observation led me to the solution. I have a DefaultType declaration that allows me to stuff PHP code anywhere I like. The downside is it tries to evaluate everything it finds as PHP that is not in my exclude list.

It really wasn't that the mime type wasn't declared properly, but that Apache thought it was PHP (which defaults to HTML after evaluation).

The puzzling part was the messages on the other sites that said that the css file was loaded even though it was type "text/html". It was also what led me to the solution.

I added "css|CSS" to the list and restarted the web server. Your help was greatly appreciated!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.