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

Stylesheet not appearing in FireFox and Camino

P: n/a
Hi,

Here's a conundrum that I hope someone out there can help me solve.

I've created a page to XHTML 1.0 Transitional / CSS standards using
Macromedia Dreamweaver MX 2004 (and validated both with no problems).
Whilst creating the page I've previewed it in IE 6, FireFox 0.8 and Opera
7.21 on my PC and the page displays perfectly (well, as perfectly as IE's
implementation of CSS will allow!)

Now when I upload the page together with its stylesheet etc. to the server
and try to view the page over the WWW, both IE 6 and Opera view it with no
problems but FireFox only displays the unstyled page. The usual sunglasses
icon appears in the bottom bar indicating that a stylesheet is attached to
the page, but for some reason that I fail to understand that stylesheet
information isn't being displayed.
I've tried it on a friends Mac and the same happens in his FireFox and also
Camino, which implies this is an issue with only Mozilla browsers.

The page in question can be found at:
http://www.ammicro.co.uk/new_site/

Any ideas anyone?

Thanks in advance.
Tony.
Jul 20 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
Tony Carnell wrote:
[snip]
Now when I upload the page together with its stylesheet etc. to the
server and try to view the page over the WWW, both IE 6 and Opera
view it with no problems but FireFox only displays the unstyled page.
The usual sunglasses icon appears in the bottom bar indicating that a
stylesheet is attached to the page, but for some reason that I fail
to understand that stylesheet information isn't being displayed.
I've tried it on a friends Mac and the same happens in his FireFox
and also Camino, which implies this is an issue with only Mozilla
browsers.

The page in question can be found at:
http://www.ammicro.co.uk/new_site/


I suspect it because your server is serving the CSS with Content Type
"application/x-pointplus" instead of "text/css". Mozilla is actually doing the
right thing, although it can be disconcerting the first time you hit it.
(Although normally the mistake is "text/html" instead!) I asked my hosting
service to change when I had a similar problem.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #2

P: n/a
Tony Carnell wrote:
[snip]
Now when I upload the page together with its stylesheet etc. to the
server and try to view the page over the WWW, both IE 6 and Opera
view it with no problems but FireFox only displays the unstyled page.
The usual sunglasses icon appears in the bottom bar indicating that a
stylesheet is attached to the page, but for some reason that I fail
to understand that stylesheet information isn't being displayed.
I've tried it on a friends Mac and the same happens in his FireFox
and also Camino, which implies this is an issue with only Mozilla
browsers.

The page in question can be found at:
http://www.ammicro.co.uk/new_site/


I suspect it because your server is serving the CSS with Content Type
"application/x-pointplus" instead of "text/css". Mozilla is actually doing the
right thing, although it can be disconcerting the first time you hit it.
(Although normally the mistake is "text/html" instead!) I asked my hosting
service to change when I had a similar problem.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #3

P: n/a
Tony Carnell wrote:
The page in question can be found at:
http://www.ammicro.co.uk/new_site/

Any ideas anyone?


Content-Type: application/x-pointplus

This is quite a common server configuration clash with css files.
Configure the server to send CSS files with mime-type "text/css".
--
Andrew Urquhart
- Contact: www.andrewu.co.uk/contact/
- Employ me: Front/middle tier ASP developer with WAI & web standards
Jul 20 '05 #4

P: n/a
Tony Carnell wrote:
The page in question can be found at:
http://www.ammicro.co.uk/new_site/

Any ideas anyone?


Content-Type: application/x-pointplus

This is quite a common server configuration clash with css files.
Configure the server to send CSS files with mime-type "text/css".
--
Andrew Urquhart
- Contact: www.andrewu.co.uk/contact/
- Employ me: Front/middle tier ASP developer with WAI & web standards
Jul 20 '05 #5

P: n/a
Hi Barry,

Thanks very much for your reply.
Just one question. The current site (www.ammicro.co.uk) also has a
stylesheet attached to it, but that one displays fine in FireFox.
Surely if it's a server content-type issue, wouldn't it stop this stylesheet
appearing too?

Regards,
Tony.
"Barry Pearson" <ne**@childsupportanalysis.co.uk> wrote in message
news:N%xdc.56$585.14@newsfe1-win...
Tony Carnell wrote:
[snip]
Now when I upload the page together with its stylesheet etc. to the
server and try to view the page over the WWW, both IE 6 and Opera
view it with no problems but FireFox only displays the unstyled page.
The usual sunglasses icon appears in the bottom bar indicating that a
stylesheet is attached to the page, but for some reason that I fail
to understand that stylesheet information isn't being displayed.
I've tried it on a friends Mac and the same happens in his FireFox
and also Camino, which implies this is an issue with only Mozilla
browsers.

The page in question can be found at:
http://www.ammicro.co.uk/new_site/
I suspect it because your server is serving the CSS with Content Type
"application/x-pointplus" instead of "text/css". Mozilla is actually doing

the right thing, although it can be disconcerting the first time you hit it.
(Although normally the mistake is "text/html" instead!) I asked my hosting
service to change when I had a similar problem.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/

Jul 20 '05 #6

P: n/a
Hi Barry,

Thanks very much for your reply.
Just one question. The current site (www.ammicro.co.uk) also has a
stylesheet attached to it, but that one displays fine in FireFox.
Surely if it's a server content-type issue, wouldn't it stop this stylesheet
appearing too?

Regards,
Tony.
"Barry Pearson" <ne**@childsupportanalysis.co.uk> wrote in message
news:N%xdc.56$585.14@newsfe1-win...
Tony Carnell wrote:
[snip]
Now when I upload the page together with its stylesheet etc. to the
server and try to view the page over the WWW, both IE 6 and Opera
view it with no problems but FireFox only displays the unstyled page.
The usual sunglasses icon appears in the bottom bar indicating that a
stylesheet is attached to the page, but for some reason that I fail
to understand that stylesheet information isn't being displayed.
I've tried it on a friends Mac and the same happens in his FireFox
and also Camino, which implies this is an issue with only Mozilla
browsers.

The page in question can be found at:
http://www.ammicro.co.uk/new_site/
I suspect it because your server is serving the CSS with Content Type
"application/x-pointplus" instead of "text/css". Mozilla is actually doing

the right thing, although it can be disconcerting the first time you hit it.
(Although normally the mistake is "text/html" instead!) I asked my hosting
service to change when I had a similar problem.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/

Jul 20 '05 #7

P: n/a
Tony Carnell <to**@fluvius.co.uk> wrote:

The current site (www.ammicro.co.uk) also has a
stylesheet attached to it, but that one displays fine in FireFox.
Surely if it's a server content-type issue, wouldn't it stop this
stylesheet appearing too?


Mozilla doesn't care about the content-type if the page is in "quirks"
mode.

--
David Håsäther
Jul 20 '05 #8

P: n/a
Tony Carnell <to**@fluvius.co.uk> wrote:

The current site (www.ammicro.co.uk) also has a
stylesheet attached to it, but that one displays fine in FireFox.
Surely if it's a server content-type issue, wouldn't it stop this
stylesheet appearing too?


Mozilla doesn't care about the content-type if the page is in "quirks"
mode.

--
David Håsäther
Jul 20 '05 #9

P: n/a
Thanks for your help everyone.

I'll get on to the WebHost!

Best regards,
Tony.
"David Håsäther" <ha******@msn.com> wrote in message
news:Xn***************************@195.67.237.51.. .
Tony Carnell <to**@fluvius.co.uk> wrote:

The current site (www.ammicro.co.uk) also has a
stylesheet attached to it, but that one displays fine in FireFox.
Surely if it's a server content-type issue, wouldn't it stop this
stylesheet appearing too?


Mozilla doesn't care about the content-type if the page is in "quirks"
mode.

--
David Håsäther

Jul 20 '05 #10

P: n/a
Thanks for your help everyone.

I'll get on to the WebHost!

Best regards,
Tony.
"David Håsäther" <ha******@msn.com> wrote in message
news:Xn***************************@195.67.237.51.. .
Tony Carnell <to**@fluvius.co.uk> wrote:

The current site (www.ammicro.co.uk) also has a
stylesheet attached to it, but that one displays fine in FireFox.
Surely if it's a server content-type issue, wouldn't it stop this
stylesheet appearing too?


Mozilla doesn't care about the content-type if the page is in "quirks"
mode.

--
David Håsäther

Jul 20 '05 #11

P: n/a

[Please don't post upside-down]

Tony Carnell wrote:
Just one question. The current site (www.ammicro.co.uk) also has a
stylesheet attached to it, but that one displays fine in FireFox.
Surely if it's a server content-type issue, wouldn't it stop this
stylesheet appearing too?


No. Your current design triggers Gecko's "quirks mode", where it actively
ignores the CSS and HTTP specifications to try and compensate for errors in
your code. One of these workarounds is to violate RFC 2616 by ignoring the
Content-Type header supplied for your stylesheets.

Your new design doesn't trigger Gecko's "quirks mode", so it follows the
relevent specifications and ignores stylesheets that aren't served as
text/css.

The trigger is the doctype declaration (or lack of one). Google will
provide all the background information you need on this topic.
--
Jim Dabell

Jul 20 '05 #12

P: n/a

[Please don't post upside-down]

Tony Carnell wrote:
Just one question. The current site (www.ammicro.co.uk) also has a
stylesheet attached to it, but that one displays fine in FireFox.
Surely if it's a server content-type issue, wouldn't it stop this
stylesheet appearing too?


No. Your current design triggers Gecko's "quirks mode", where it actively
ignores the CSS and HTTP specifications to try and compensate for errors in
your code. One of these workarounds is to violate RFC 2616 by ignoring the
Content-Type header supplied for your stylesheets.

Your new design doesn't trigger Gecko's "quirks mode", so it follows the
relevent specifications and ignores stylesheets that aren't served as
text/css.

The trigger is the doctype declaration (or lack of one). Google will
provide all the background information you need on this topic.
--
Jim Dabell

Jul 20 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.