473,573 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mozilla

I have a site which looks quite nice in IE and also looks just fine on
Mozilla Firefox (on my home machine). But when I access it from the server
where I have uploaded it, NONE of the CSS formatting works.

I have bought "Tree Menu Magic" from Project 7 and adapted their style sheet
for this site.

Site address: www.tased.edu.au/tasonline/vest

I don't think it's a Mozilla problem as such because then it wouldn't work
on Mozilla when loading from my own machine, right? And it can't be a server
problem because then IE wouldn't work properly either?

so anybody know what gives?
TIA
Jul 20 '05 #1
22 2497
Els
Pixel Warrior wrote:
I have a site which looks quite nice in IE and also looks
just fine on Mozilla Firefox (on my home machine). But when
I access it from the server where I have uploaded it, NONE
of the CSS formatting works.

I have bought "Tree Menu Magic" from Project 7 and adapted
their style sheet for this site.

Site address: www.tased.edu.au/tasonline/vest

I don't think it's a Mozilla problem as such because then
it wouldn't work on Mozilla when loading from my own
machine, right? And it can't be a server problem because
then IE wouldn't work properly either?

so anybody know what gives?


Your CSS isn't exactly written in a way which is easy to spot
mistakes, so I just copied the whole lot, uploaded it to my own
server, and it is working in both Moz and IE.
http://locusmeus.com/temp/vest.html
Didn't copy any images, but the colour and text formatting is
there, in both browsers.
So maybe it is a server thing?

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Jul 20 '05 #2
On Sun, 18 Jul 2004 08:22:06 GMT, Pixel Warrior wrote:
www.tased.edu.au/tasonline/vest


If you check the file..
<http://www.tased.edu.a u/tasonline/vest/assets/styles.css>

Against the validator it indicates a problem..
<http://jigsaw.w3.org/css-validator/validator?http://www.tased.edu.a u/tasonline/vest/assets/styles.css>

Which seems to be that your server is
delivering the CSS as 'text/html' rather
than 'text/css', which you can see here..
<http://mindprod.com/jgloss/mime.html>

It seems you need to get your host
to configure there Apache correctly..
<http://uptime.netcraft .com/up/graph/?host=www.tased .edu.au>

And BTW, please put full and proper URL's,
as some newsreaders do not presume an
http:// before URLish looking things..

HTH

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 20 '05 #3
Thanks! that seems to be the answer. And thanks for the hint about the
http:// thing.
"Andrew Thompson" <Se********@www .invalid> wrote in message
news:bz******** *************** *****@40tude.ne t...
On Sun, 18 Jul 2004 08:22:06 GMT, Pixel Warrior wrote:
www.tased.edu.au/tasonline/vest
If you check the file..
<http://www.tased.edu.a u/tasonline/vest/assets/styles.css>

Against the validator it indicates a problem..

<http://jigsaw.w3.org/css-validator/v....edu.au/tasonl
ine/vest/assets/styles.css>
Which seems to be that your server is
delivering the CSS as 'text/html' rather
than 'text/css', which you can see here..
<http://mindprod.com/jgloss/mime.html>

It seems you need to get your host
to configure there Apache correctly..
<http://uptime.netcraft .com/up/graph/?host=www.tased .edu.au>

And BTW, please put full and proper URL's,
as some newsreaders do not presume an
http:// before URLish looking things..

HTH

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Jul 20 '05 #4
Pixel Warrior wrote:
I have a site which looks quite nice in IE and also looks just fine
on Mozilla Firefox (on my home machine). But when I access it from
the server where I have uploaded it, NONE of the CSS formatting
works.

www.tased.edu.au/tasonline/vest
You're sending the css with the wrong MIME type. The server claims it
is text/html. The correct MIME type for CSS is text/css. Fix that, and
it should be fine.
I don't think it's a Mozilla problem as such because then it
wouldn't work on Mozilla when loading from my own machine, right?
Your own machine does not have a server, but rather file > open, where
there is no MIME type. Or else you do have a server, but it is
configured properly. The live server is not configured properly.

According to the specs, the MIME type is definitive. If the MIME type
says it's text/html, then it is text/html. NB: the ".css" on a url is
not a file extension; there are no file extensions in a url, so only
the MIME type has any meaning.
And it can't be a server problem because then IE wouldn't work
properly either?


MSIE breaks the interworking specs in this regard. Instead of
accepting the MIME type as definitive, it sniffs the content and tries
to second guess it. In this case, IE violates the spec and gives you
what you want, but not what the MIME type says. Mozilla does not
violate the spec in this case, and thus the results are not what you want.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #5
On Sun, 18 Jul 2004, Brian wrote:
According to the specs, the MIME type is definitive. If the MIME type
says it's text/html, then it is text/html. NB: the ".css" on a url is
not a file extension; there are no file extensions in a url,
Right. Of course, you know and I know that it probably derives from a
filename extension on the server; but that *should* have no
significance for an HTTP *client*, as you rightly pointed out.
so only the MIME type has any meaning.
To the client, indeed. It *might* be used on the server to deduce the
appropriate MIME type to send - the server in question here is
evidently getting it wrong.
And it can't be a server problem because then IE wouldn't work
properly either?


MSIE breaks the interworking specs in this regard. Instead of
accepting the MIME type as definitive, it sniffs the content and tries
to second guess it. In this case, IE violates the spec and gives you
what you want, but not what the MIME type says.


Exactly.
Mozilla does not violate the spec in this case, and thus the results
are not what you want.


Well, I'm sorry to say that in relation to CSS files, Mozilla too
disregards this rule, *when* operating in quirks mode, and that the
disregard is deliberate, see:
http://www.mozilla.org/docs/web-deve...quirklist.html

As you'd expect, some clue-impaired designers then "solve" their
problem by removing their DOCTYPE declaration in order to get quirks
mode...

Opera also has an option (enabled by default) to second-guess the MIME
type. One may well blame all of this misbehaviour on IE for creating
the problem in the first place, so it's hard to know just where to put
the blame.

hope this helps.
Jul 20 '05 #6
Alan J. Flavell wrote:
On Sun, 18 Jul 2004, Brian wrote:
the ".css" on a url is not a file extension; there are no file
extensions in a url, so only the MIME type has any meaning.


To the client, indeed. It *might* be used on the server to deduce
the appropriate MIME type to send


Of course. I opted for conciseness at the expense of being thorough.
Perhaps I made the wrong choice.
MSIE breaks the interworking specs in this regard. Instead of
accepting the MIME type as definitive, it sniffs the content and
tries to second guess it. In this case, IE violates the spec and
gives you what you want, but not what the MIME type says. Mozilla does not violate the spec in this case


Well, I'm sorry to say that in relation to CSS files, Mozilla too
disregards this rule,


I did say "in this case." The op's server sends a MIME type for css of
"text/html". Evidently, Firefox does not "fixup" (read: second guess)
text/html to text/css. Judging from the op's test case, Firefox only
fixes up text/plain to text/css. Mind you, I've not run test cases
myself, I'm only deducing from the op and what I read from Mozilla's site.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #7
Quoth the raven Brian:
I did say "in this case." The op's server sends a MIME type for css
of "text/html". Evidently, Firefox does not "fixup" (read: second
guess) text/html to text/css. Judging from the op's test case,
Firefox only fixes up text/plain to text/css. Mind you, I've not
run test cases myself, I'm only deducing from the op and what I
read from Mozilla's site.


Moz/FF also 'fix up' css when sent as "applicatio n/x-pointplus"
as one of my ISPs can't seem to get corrected.

We've been leaving regular reminders in their help and suggestions
forum for a couple of years now...

--
-bts
-This space intentionally left blank.
Jul 20 '05 #8
On Sun, 18 Jul 2004, Brian wrote:
Alan J. Flavell wrote:
On Sun, 18 Jul 2004, Brian wrote:
the ".css" on a url is not a file extension; there are no file
extensions in a url, so only the MIME type has any meaning.


To the client, indeed. It *might* be used on the server to deduce
the appropriate MIME type to send


Of course. I opted for conciseness at the expense of being thorough.
Perhaps I made the wrong choice.


No offence intended; this is an area which quite a number of newcomers
seem to get confused about, and I had the idea that going into just a
bit more explicit detail might be helpful. But I could be wrong...

all the best.
Jul 20 '05 #9
On Sun, 18 Jul 2004 09:57:28 -0400, Brian wrote:
You're sending the css with the wrong MIME type.


As y'all may (or may not) have noticed, I used a
Java based signed applet* to check the MIME type
of the CSS being delivered from the OP's servers.

* <http://mindprod.com/jgloss/mime.html>

Since I heard of this applet though, I wondered
how you folks normally check a MIME type?
[ The applet requires Java (obviously) and the
user must accept the CMP (Roedy Green) security
certificate, which I think throws some people. ]

Do you have a specially enabled browser or
browser plug-in. Stand-alone network type tools?
Some web site (that I apparantly missed) that will
check MIME types given an URL?

Ultimately I could code something myself that
accepts the address of the resource in the URL
parameters, checks it and returns pure HTML to
the client. But I have a distinct feeling it is
so easy it must already have been done..

[ I concede that the CSS validator was a pretty
good *indicator* of a problem, but I would prefer
something that stated explicitly what the MIME
type was.. ]

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1666
by: Neil Zanella | last post by:
Hello, I just ran into an interesting problem with cookies while using PHP 4 and Mozilla 1.6. Basically, I have been using PHP on a site called: foo.bar.net?script.php Within that script I call setcookie() and manipulate cookie variable $_COOKIE. All works fine
4
2385
by: Jakub Fast | last post by:
Hi, Does anybody know how far you can get nowadays with trying to use Python as the script language for XUL instead of JS? Is it possible (even theoretically) to write full-fledged applications on the Mozilla platform with python only? In a parallel vein, anybody know what the architecture of Komodo is? Thanks for any pointers,...
0
1764
by: melledge | last post by:
Mozilla Foundation Co-Hosts Europe's Leading XML and Web Developer Conference XTech 2005 Conference to Bring Together XML and Web Technology Thought Leaders
2
5975
by: Peter | last post by:
Hello, First of all, sorry for all the code. I don't know how to explain my problem without it. I have a javascript function which can build a webpage dynamically. A striped down version of the function looks like this: BEGIN CODE
15
7265
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the same problem. Internet Explorer 6 and Opera 7 have no problems with it. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'...
10
3573
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script language="JavaScript" type="text/javascript"> function show(that) { if (box.style.visibility=='hidden') { that.style.visibility = 'visible'}; }
3
1650
by: Jim Ley | last post by:
Hi, It seems the mozilla guys have chosen another (almost certainly poor choice in my initial thoughts) of having document.all evaluate to false, but document.all catch the chicken event - also document.all.tags will work. It seems that the document.all not evaluating to true is to stop the really dumb object assumption scripts to fail...
10
2351
by: News | last post by:
I have a page up trying to learn how to ID a browser and other info. http://wyght.com/warren/testPos.html here is the code <script type = "text/javascript"> var space = ", "; var name = navigator.appName;
20
2616
by: Thorsten Kampe | last post by:
Hi, I've already sent this to the Komodo mailing list (which seemed to me the more appropriate place) but unfortunately I got no response. I'd like to build a Python GUI app. Neither Tkinter nor Wxpython nor PyQT are actually what I want (because the lack of GUI builders and they don't really look good on Windows and Linux). Komodo...
0
7669
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7987
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8179
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7740
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8036
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3700
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2167
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1269
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1000
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.