Forum Moderators: not2easy

Message Too Old, No Replies

CSS not recognized by Firefox and IE

Works fine on my local machine

         

Digmen1

10:59 pm on May 17, 2007 (gmt 0)

10+ Year Member Top Contributors Of The Month



Hi Guys

I am building my first web site ever and am using XHTML and CSS.

My pages look good when I open them in Firefox as a file on my local machine.

But when I browse them in Firefox or IE on my broadband they shows as unformatted or using an old CSS.

My ISP said I should do a hard refresh with Ctrl F5 to clear my cache in Firefox.

I have done this, but my site still shows up unformatted according to my CSS sheet.

Any suggestions?

Kind Regards

Digby
NZ

tomda

11:15 pm on May 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yep, clearing the cache should do.

If not, you need to make sure that you call the good external CSS file. To do so, open the source code and look at the URL you are calling (the one ending with .css - something like that <style type="text/css">@import url(style.css);</style>)

outrun

1:32 am on May 18, 2007 (gmt 0)

10+ Year Member



It could also be sending at as the wrong mime type.

In firefox type in the full URL as your CSS file if it tries to download it or its not in the same format as your original css file then that could be it.

Xapti

6:56 am on May 18, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also make sure your link is has a proper path, preferrably relative to your file. So if the css file is in the same directory as the pages, the code would be url(file.css)

The problem may have been that it was pointing to an absolute path on your machine or something (and it was either removed, or denying a local machine include, both probably unlikely though).

londrum

8:45 am on May 18, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



some FTP programs can be set up so they only upload a file if it's unchanged, or if it's newer than the one that's already there.
maybe its something to do with that.
maybe you think you have uploaded the new file, but the old one is still there.

i would delete the old css file off the server completely, and then upload it again.
if you still get the old style sheet showing, then you'll know it must be something to do with your browser cache.

Digmen1

6:44 pm on May 18, 2007 (gmt 0)

10+ Year Member Top Contributors Of The Month



Thanks guys

Thanks for all your replies, I am working though them, and will report back.

Kind regards

Digby
NZ

Digmen1

1:11 am on May 19, 2007 (gmt 0)

10+ Year Member Top Contributors Of The Month



Hi Guys

I finally fixed it!

I tried most of your suggestions, with no luck, everything looked fine.

Then I find that I could not find some of my files on my server if I typed their name in upper and lower case!

So I changed all of my file names .htm and css to lower case only and I changed the names in my XHTML to lower case. Then I deleted most of my files on my ISP and then uploaded the "new" files and it worked first time in Firefox and IE!

So thanks for your help.

This forum is fantastic!