Topic: Firefox not reading external CSS Pages that link to <a href="https://ozoneasylum.com/backlink?for=28713" title="Pages that link to Topic: Firefox not reading external CSS" rel="nofollow" >Topic: Firefox not reading external CSS\

 
Author Thread
krets
Paranoid (IV) Mad Scientist

From: Right-dead center
Insane since: Nov 2002

IP logged posted posted 12-07-2006 20:26 Edit Quote

I just finished uploading a webpage that I worked on with a friend and I'm having an issue. For whatever reason now that I have uploaded the site to the client's webhost, Firefox will not read the stylesheet so I end up with an unformatted page. It works in IE and on the browser on my PDA/Phone but not FF.

This seems to only be happening for me as well, the friend who I worked on it with isn't having issues.

http://www.scanamcorp.com <-- This is messed up for me.

http://www.11oh1.net/scanam <-- EXACT same site/code but it works fine. (This is what we used for testing)

Can you think of any reason why this might be happening?

:::11oh1:::

mas
Maniac (V) Mad Librarian

From: the space between us
Insane since: Sep 2002

IP logged posted posted 12-07-2006 20:52 Edit Quote

this is pretty weird. this somehow has to have something to do with the host...but no idea what exactly. i tried google, but couldnt find something. sorry, i think i cant help here....but please let me know what the problem was if you manage to get it fixed....

The Space Between Us | My Blog: lukas.grumet.at

krets
Paranoid (IV) Mad Scientist

From: Right-dead center
Insane since: Nov 2002

IP logged posted posted 12-07-2006 20:59 Edit Quote

Hey mas, does it do the same thing for you in Firefox?

:::11oh1:::

DL-44
Lunatic (VI) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 12-07-2006 21:32 Edit Quote

Same problem here. I don't see anything obvious, but don't have time to play thoroughly at the moment.
Have you done the obivous, like running it through validators?

(Edited by DL-44 on 12-07-2006 21:34)

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

IP logged posted posted 12-07-2006 21:59 Edit Quote

It also work fine in Opera 9.
And the stylesheet is not even requested in FF2
Have your tried with a different DOCTYPE, or to make a minimal test case, like only the external CSS and a H1 and a P or something similar ?

krets
Paranoid (IV) Mad Scientist

From: Right-dead center
Insane since: Nov 2002

IP logged posted posted 12-07-2006 22:11 Edit Quote

I've thought of trying it like that but since it works off of my host and not my client's I'm just wondering if it's something on the host side? I've never heard of anything like this though.

Anyone have an older version of FF they could try?

The CSS validates but my XHTML doesn't right now because of a JS that I used to generate the random banner image. I've been looking into some alternatives for that but that has been on the back burner to other more pressing needs.

(Edit: Although now that I think of it, there are pages within the site that validate just fine but still don't load the stylesheet. The index page is the only one with the offending JS.)

:::11oh1:::

(Edited by krets on 12-07-2006 22:13)

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

IP logged posted posted 12-07-2006 23:19 Edit Quote

Ditto in FF1.5.0.7
Placing the body of the script in a <![CDATA[ /* your code */ ]]> might help to validate.

WebShaman
Lunatic (VI) Mad Scientist

From: Happy Hunting Grounds...
Insane since: Mar 2001

IP logged posted posted 12-07-2006 23:53 Edit Quote

I get the same problem.

That is strange.

WebShaman | The keenest sorrow (and greatest truth) is to recognize ourselves as the sole cause of all our adversities.
- Sophocles

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

IP logged posted posted 12-08-2006 00:42 Edit Quote

have you tried to put the css directly into the html to see if it reads it then?

I'm having the same issue as you are. I took the page, style sheet and some images and loaded on my linux box here and it worked fine.

Looks like a permissions problem but I can access the css file so I'm not sure what's going on.

Later,

C:\

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

IP logged posted posted 12-08-2006 00:43 Edit Quote

wrong content-type (text/plain instead of text/css)

Ramasax
Maniac (V) Inmate

From: PA, US
Insane since: Feb 2002

IP logged posted posted 12-08-2006 00:45 Edit Quote

This may help. It is an old writeup, but sounds like the problem you are having.

quote:

The W3C specification mentions that CSS files should be served with a "text/css" MIME type. Mozilla and Netscape 7.x, when used in "strict mode" will follow the specification closely and expect the CSS file to be served with a correct MIME type ("Strict mode" is enabled by having a strict DTD mentioned in the first line of the HTML page). In "quirks mode", both application will tolerate the wrong MIME type and use the attached style sheet despite the incorrect server configuration. This means that you cannot have "Strict" documents with a misconfigured server. MSIE lets you get away with this misconfiguration by incorrectly not taking care of the MIME type provided by the server in the http header.





Ram

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

IP logged posted posted 12-08-2006 00:48 Edit Quote

looks like this guy is having the same problem.

So it "could" be a server issue. The server is reading the CSS as text/plain instead of text/css

Later,

C:\

<edit>

hahaha Resio got it too Check out and see if you can do a .htaccess file to alter the MIME type

actually here is a .htaccess to do just that

AddType text/css .css

save that sucker and slap it in the directory =)

(Edited by CPrompt on 12-08-2006 00:55)

krets
Paranoid (IV) Mad Scientist

From: Right-dead center
Insane since: Nov 2002

IP logged posted posted 12-08-2006 00:59 Edit Quote

Thanks Cprompt, that did the trick.

:::11oh1:::

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

IP logged posted posted 12-08-2006 02:31 Edit Quote

no problem. that's really weird though. I've never seen a host have issues with that. Good to know though. Knowing me I'll forget about it in a week

Later,

C:\

krets
Paranoid (IV) Mad Scientist

From: Right-dead center
Insane since: Nov 2002

IP logged posted posted 12-12-2006 22:28 Edit Quote

And now it's not working again.

I was reading those links posted above and maybe this host has disabled .htaccess? Stupid webhosts.

:::11oh1:::

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

IP logged posted posted 12-13-2006 12:38 Edit Quote

It seems to be fine for me still. but...

quote:

krets said:

Stupid webhosts.



yep, get your client to change hosts.

Later,

C:\

(Edited by CPrompt on 12-13-2006 12:39)



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu