Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rendering problem with Firefox 1

Status
Not open for further replies.

HelloMike

MIS
Feb 14, 2003
210
GB
I have a little time on my hands so I've been polishing my CV. I'm not a web designer - more of a database specialist, so I don't really know where to start here. Have a look at . It renders fine in IE but it's all over the place in Firefox. The strange thing is that Firefox renders my local copy of the site correctly, but it goes bananas when I upload it to my ISP.

Any ideas, anyone ??

Cheers, Mike.
 
A bit of clarification ...

It's a though Firefox is failing to take notice of the CSS file. The link I'm using is ...
Code:
<link rel="stylesheet" type="text/css" href="./css/softline.css" />
... which, as I said, works fine with IE.

Still puzzled :(

Cheers, Mike.
 
Seems to me your link isn't valid.

Try this:

Code:
<link rel="stylesheet" type="text/css" href="../css/softline.css" />

or this, depending on the proper path to the file:

Code:
<link rel="stylesheet" type="text/css" href="/css/softline.css" />
 
I think the problem is with the MIME type sent with the CSS file. Firefox insists that it should be "text/css", and ignores anything sent with a different type.

You need to contact your host (or tweak your .htaccess file, if you have one) to send the proper type with .css files.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Thanks for the replies folks.

wiser3 ... The link I gave works fine with IE. I switched it a while later to the full URL, and that works fine with IE as well, but not with Firefox.

Chris ... I think you may be on to something there, because I still get the same problem with Firefox when I use the full URL to the CSS file. I've contacted my ISP, and I'll post back if/when something happens.

Cheers, Mike.
 
Well, I haven't got much further.

I added a .htaccess file to the css sub-directory on the server. First I tried it with the following content ...
Code:
AddType text/css .css
and then with
Code:
AddType text/css css
Neither seemed to do anything.

Is there anything wrong with the syntax here ?

Cheers, Mike.
 
I have just looked at your pages and they look perfect to me.

I am using Firefox v1.0

I even tried Ctrl + and Ctrl - to adjust font sizes and it increased and decreased the fonts beautifully.

Have you solved the problem?
 
I have just looked at your pages and they look perfect to me.

I am using Firefox v1.0

I even tried Ctrl + and Ctrl - to adjust font sizes and it increased and decreased the fonts beautifully.

Have you solved the problem?
 
Well, it seems to be solved for everyone except me !! Everything's OK except when I view the pages using Firefox to look at the website (that's the one at the URL, not my local copy). I'm using Firefox 1.0 with Win2000Pro SP4.

If it's OK for everyone else I'll try not to worry about it, but I'm still puzzled ...

Cheers, Mike.
 
Hi Mike,

I am also on W2K SP4 with FF 1.0

Have you made any changes to your Firefox configuration through about:config for example?

Have you tried creating a new profile and testing the page there? It may be a conflict with an extension or something.

Create a new profile by launching FF with -P at the end:

eg

"C:\Program Files\Firefox\firefox.exe" -p

 
That's because you have the old version sitting in your cache. When you visit the page, the browser asks the server if there's a newer version of softline.css than it has in its local store. There isn't, so the browser loads the file from the cache, complete with its original MIME header.

To fix it in your browser: Visit the page with Firefox, hold down shift, and click the reload button. That will force it to load an uncached version.

Uploading a newer version of the CSS file (even if it's exactly the same as the old one!) should do the same thing for other visitors.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Bingo. Thanks Chris. I'd forgotten all about the shift-refresh trick. And not for the first time :(

Just one more little puzzle ... part of my hair-tearing-out routine involved deleting all the relevant files from the Temporary Internet Files directory. I'd have thought this would have the same effect. But I didn't close and restart Firefox. So where was the cache ?

Cheers, Mike.
 
Usually:

[tt]Documents and Settings\[UserName]\Application Data\Mozilla\Profiles\Default\[RandomDir]\Cache\[/tt]

Maybe it is FireFox instead of Mozilla for FF.
 
Ah. Sneaky. Found it in C:\Documents and Settings\[UserName]\Application Data\Mozilla\Firefox\Profiles\n3ktfzt4.default\Cache

Thanks everyone. I'm a happy bunny now.

Cheers, Mike.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top