HighDots Forums  

Firefox and IE problems with my stylesheet

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Firefox and IE problems with my stylesheet in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Arne
 
Posts: n/a

Default Re: Firefox and IE problems with my stylesheet - 12-09-2005 , 06:02 PM






Once upon a time *meltedown* wrote:
Quote:
Beauregard T. Shagnasty wrote:
AJBopp wrote:


Ok, I'm a newbie but this is too weird for words. Why does
http://www.wesleyumc-vinton.org/beta/index.html not render correctly in
FF, but


Error: The style sheet http://www.wesleyumc-vinton.org/beta/style1.css
was not loaded because its MIME type, "application/octet-stream", is not
"text/css".


http://www.wesleyumc-vinton.org/index.html renders OK? Especially since
the CSS in the second case is really crappy and full of errors? (my
first effort at it).


http://jigsaw.w3.org/css-validator/v...org/index.html

You need to remove the
style type="text/css"
from that style sheet.

Use the Web Developer's Toolbar with Firefox, and you can find things
like this in .. double-quick time.
http://chrispederick.com/work/webdeveloper/

I have the web develepers toolbar and I use it all the time. Its really
handy. When I look at AJBopp's site in FF, it doesn't load the css.
But when I click on "edit css" it loads fine. I can then see the
contents of the page as well as the css in the editor.

However, when I try to look at the style sheet in firefox, it thinks its
an application and tries to download it, instead of simply viewing it,
obviously because the mime type is wrong. But what I would like to know
is how do you get the error that tells you the mime type is
application/octet-stream ?

Inquiring minds want to know !
I can see it the Javascript Console:
---------
Error: The stylesheet http://www.wesleyumc-vinton.org/beta/style1.css
was not loaded because its MIME type, "application/octet-stream", is not
"text/css".
---------

--
/Arne

Google Group Users, read about The Usenet Improvement Project:
http://blinkynet.net/comp/uip5.html


Reply With Quote
  #12  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Firefox and IE problems with my stylesheet - 12-09-2005 , 06:31 PM






Arne wrote:

Quote:
Once upon a time *meltedown* wrote:
However, when I try to look at the style sheet in firefox, it thinks its
an application and tries to download it, instead of simply viewing it,
obviously because the mime type is wrong. But what I would like to know
is how do you get the error that tells you the mime type is
application/octet-stream ?
How do you get that? You misconfigure your server! <g>

Quote:
Inquiring minds want to know !
AJ will have to get his host to fix it.

There are also lots of servers out there that send CSS files as
application/x-pointplus or something like that. My ISP has had that
error for years on their webmail pages, and they can't find anyone smart
enough to fix it, even though I remind them periodically.

Quote:
I can see it the Javascript Console:
---------
Error: The stylesheet http://www.wesleyumc-vinton.org/beta/style1.css
was not loaded because its MIME type, "application/octet-stream", is not
"text/css".
---------
Precisely where I saw it, Arne.

--
-bts
-Warning: I brake for lawn deer


Reply With Quote
  #13  
Old   
meltedown
 
Posts: n/a

Default Re: Firefox and IE problems with my stylesheet - 12-09-2005 , 06:34 PM



Arne wrote:
Quote:
Once upon a time *meltedown* wrote:

Beauregard T. Shagnasty wrote:

AJBopp wrote:



Ok, I'm a newbie but this is too weird for words. Why does
http://www.wesleyumc-vinton.org/beta/index.html not render correctly in
FF, but


Error: The style sheet http://www.wesleyumc-vinton.org/beta/style1.css
was not loaded because its MIME type, "application/octet-stream", is not
"text/css".



http://www.wesleyumc-vinton.org/index.html renders OK? Especially since
the CSS in the second case is really crappy and full of errors? (my
first effort at it).


http://jigsaw.w3.org/css-validator/v...org/index.html

You need to remove the
style type="text/css"
from that style sheet.

Use the Web Developer's Toolbar with Firefox, and you can find things
like this in .. double-quick time.
http://chrispederick.com/work/webdeveloper/


I have the web develepers toolbar and I use it all the time. Its really
handy. When I look at AJBopp's site in FF, it doesn't load the css.
But when I click on "edit css" it loads fine. I can then see the
contents of the page as well as the css in the editor.

However, when I try to look at the style sheet in firefox, it thinks its
an application and tries to download it, instead of simply viewing it,
obviously because the mime type is wrong. But what I would like to know
is how do you get the error that tells you the mime type is
application/octet-stream ?

Inquiring minds want to know !


I can see it the Javascript Console:
---------
Error: The stylesheet http://www.wesleyumc-vinton.org/beta/style1.css
was not loaded because its MIME type, "application/octet-stream", is not
"text/css".
---------

Ok, now I see it. It's there but it doesn't light up the little red
alert sign. Thanks.


Reply With Quote
  #14  
Old   
Ed Mullen
 
Posts: n/a

Default Re: Firefox and IE problems with my stylesheet - 12-09-2005 , 08:36 PM



meltedown wrote:

Quote:
Darin McGrew wrote:

AJBopp wrote:

Thanks! That eliminates one problem. Now if I could just get teh CSS to
render in Firefox!



meltedown <groups2 (AT) reenie (DOT) org> wrote:

It must be something to do with your server.
Here's the same page on my server and it works fine in Firefox
http://www.reenie.org/test/test3/



Yep. The file http://www.wesleyumc-vinton.org/beta/style1.css is being
sent
as application/octet-stream rather than as text/css.


How do you know ? Is there some way of telling what its being sent as ?
In Mozilla Suite CTRL+I getst the page info display. In Firefox
right-click and choose page info. As far as I know there is no analog
in Internet Explorer.

--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
Great art is as irrational as great music. It is mad with its own
loveliness. - George Jean Nathan


Reply With Quote
  #15  
Old   
meltedown
 
Posts: n/a

Default Re: Firefox and IE problems with my stylesheet - 12-10-2005 , 02:26 AM



Ed Mullen wrote:
Quote:
meltedown wrote:

Darin McGrew wrote:

AJBopp wrote:

Thanks! That eliminates one problem. Now if I could just get teh
CSS to
render in Firefox!




meltedown <groups2 (AT) reenie (DOT) org> wrote:

It must be something to do with your server.
Here's the same page on my server and it works fine in Firefox
http://www.reenie.org/test/test3/




Yep. The file http://www.wesleyumc-vinton.org/beta/style1.css is
being sent
as application/octet-stream rather than as text/css.



How do you know ? Is there some way of telling what its being sent as ?


In Mozilla Suite CTRL+I getst the page info display. In Firefox
right-click and choose page info. As far as I know there is no analog
in Internet Explorer.

Yes but... If a stylesheet is being sent as an application/octet-stream,
I can't open it in firefox. Can you ? So therefore I can't look at the
page info.


Reply With Quote
  #16  
Old   
Arne
 
Posts: n/a

Default Re: Firefox and IE problems with my stylesheet - 12-10-2005 , 03:45 AM



Once upon a time *Beauregard T. Shagnasty* wrote:

Quote:
Arne wrote:

I can see it the Javascript Console:
---------
Error: The stylesheet http://www.wesleyumc-vinton.org/beta/style1.css
was not loaded because its MIME type, "application/octet-stream", is not
"text/css".
---------

Precisely where I saw it, Arne.
But the strange thing is, when
http://www.wesleyumc-vinton.org/beta/index.html
gives an error and the css is therefore not loaded,

http://www.wesleyumc-vinton.org/index.html
gives "only" a warning and loads the css, the MIME type is the same in
both cases.
--------------
Warning: The stylesheet http://www.wesleyumc-vinton.org/style.css was
loaded as CSS even though its MIME type, "application/octet-stream", is
not "text/css".
--------------

It's not the same css file, but the server and MIME type is the same. So
why is one file loaded but not he other? I can see the same differences
in behavior with css files where the MIME type is wrongly served as
text/plain. Why can't Mozilla be consistent with this?

--
/Arne

Google Group Users, read about The Usenet Improvement Project:
http://blinkynet.net/comp/uip5.html


Reply With Quote
  #17  
Old   
boclair
 
Posts: n/a

Default Re: Firefox and IE problems with my stylesheet - 12-10-2005 , 05:21 AM



meltedown wrote:
Quote:
Ed Mullen wrote:

meltedown wrote:

Darin McGrew wrote:

AJBopp wrote:

Now if I could just get teh
CSS to
render in Firefox!





meltedown <groups2 (AT) reenie (DOT) org> wrote:

It must be something to do with your server.
Here's the same page on my server and it works fine in Firefox
http://www.reenie.org/test/test3/





Yep. The file http://www.wesleyumc-vinton.org/beta/style1.css is
being sent
as application/octet-stream rather than as text/css.
If a stylesheet is being sent as an application/octet-stream,
I can't open it in firefox. Can you ? So therefore I can't look at the
page info.
Have a look at http://www.pc-tools.net/win32/viewhead/ for example.

Louise


Reply With Quote
  #18  
Old   
meltedown
 
Posts: n/a

Default Re: Firefox and IE problems with my stylesheet - 12-10-2005 , 06:39 AM



Arne wrote:
Quote:
Once upon a time *Beauregard T. Shagnasty* wrote:


Arne wrote:


I can see it the Javascript Console:
---------
Error: The stylesheet http://www.wesleyumc-vinton.org/beta/style1.css
was not loaded because its MIME type, "application/octet-stream", is not
"text/css".
---------

Precisely where I saw it, Arne.


But the strange thing is, when
http://www.wesleyumc-vinton.org/beta/index.html
gives an error and the css is therefore not loaded,

http://www.wesleyumc-vinton.org/index.html
gives "only" a warning and loads the css, the MIME type is the same in
both cases.
--------------
Warning: The stylesheet http://www.wesleyumc-vinton.org/style.css was
loaded as CSS even though its MIME type, "application/octet-stream", is
not "text/css".
--------------

It's not the same css file, but the server and MIME type is the same. So
why is one file loaded but not he other? I can see the same differences
in behavior with css files where the MIME type is wrongly served as
text/plain. Why can't Mozilla be consistent with this?

But it is being consistent. When Firefox acts strange and IE seems fine,
what is usually happening is that IE is incorrectly compensating for bad
code and Firefox is doing exactly what its supposed to be doing.

I don't know for sure but I'd say the difference is that the page that
doesn't load has a strict doctype and the other has transitional
doctype. So FireFox is being less strict on the transitional page and
very strict on the strict page, which is exactly what it should be
doing, while IE is confusing things by trying to guess what is intended,
which basically means it is ignoring the doctype. So its IE that's being
inconsitent.


Reply With Quote
  #19  
Old   
Arne
 
Posts: n/a

Default Re: Firefox and IE problems with my stylesheet - 12-10-2005 , 06:56 AM



Once upon a time *meltedown* wrote:

Quote:
Arne wrote:
Once upon a time *Beauregard T. Shagnasty* wrote:


Arne wrote:


I can see it the Javascript Console:
---------
Error: The stylesheet http://www.wesleyumc-vinton.org/beta/style1.css
was not loaded because its MIME type, "application/octet-stream", is not
"text/css".
---------

Precisely where I saw it, Arne.


But the strange thing is, when
http://www.wesleyumc-vinton.org/beta/index.html
gives an error and the css is therefore not loaded,

http://www.wesleyumc-vinton.org/index.html
gives "only" a warning and loads the css, the MIME type is the same in
both cases.
--------------
Warning: The stylesheet http://www.wesleyumc-vinton.org/style.css was
loaded as CSS even though its MIME type, "application/octet-stream", is
not "text/css".
--------------

It's not the same css file, but the server and MIME type is the same. So
why is one file loaded but not he other? I can see the same differences
in behavior with css files where the MIME type is wrongly served as
text/plain. Why can't Mozilla be consistent with this?

But it is being consistent. When Firefox acts strange and IE seems fine,
what is usually happening is that IE is incorrectly compensating for bad
code and Firefox is doing exactly what its supposed to be doing.

I don't know for sure but I'd say the difference is that the page that
doesn't load has a strict doctype and the other has transitional
doctype. So FireFox is being less strict on the transitional page and
very strict on the strict page, which is exactly what it should be
doing, while IE is confusing things by trying to guess what is intended,
which basically means it is ignoring the doctype. So its IE that's being
inconsitent.
Yes, I can understand that about webpages. And at least in this cases
the doctype makes the difference. I have not notice that on sites where
the css file had the text/plain type, but i guess it was the case.

But my opinion is that a file (.css or whatever other extensions) that
have wrong MIME type should not be loaded as what the extension says, no
matter the doctype for the webpage the file is supposed to be loaded with.

--
/Arne

Google Group Users, read about The Usenet Improvement Project:
http://blinkynet.net/comp/uip5.html


Reply With Quote
  #20  
Old   
Stan McCann
 
Posts: n/a

Default Re: Firefox and IE problems with my stylesheet - 12-10-2005 , 05:44 PM



meltedown <groups2 (AT) reenie (DOT) org> wrote in
news8mmf.302440$7k1.4021 (AT) fe12 (DOT) news.easynews.com:

Quote:
Darin McGrew wrote:
AJBopp wrote:

Thanks! That eliminates one problem. Now if I could just get teh
CSS to render in Firefox!


meltedown <groups2 (AT) reenie (DOT) org> wrote:

It must be something to do with your server.
Here's the same page on my server and it works fine in Firefox
http://www.reenie.org/test/test3/


Yep. The file http://www.wesleyumc-vinton.org/beta/style1.css is
being sent as application/octet-stream rather than as text/css.

How do you know ? Is there some way of telling what its being sent
as ?
I recieved a download dialog box when I tried to view the stylesheet.
It is not being served properly as text/css although I'm not sure about
the application/octet-stream.

Darin, try resaving the file, copying and pasting if need be into
another editor and make sure it is saved as plain text. Then re-upload
and see if your problem persists.

--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
http://alamo.nmsu.edu/ There are 10 kinds of people.
Those that understand binary and those that don't.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.