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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape 6.2 doesnt see my CSS

Status
Not open for further replies.

maharg

Technical User
Mar 21, 2002
184
Hi Folks

Strange one with CSS and Netcape 6.2 got me beat. No recognition of my CSS files.

Looks OK on IE and even looks OK when I view the local files on my PC with Netscape 6.2.

But on the website - no go - no stylesheet applied at all when viewed with NS.

See
or, for a less cluttered page, and an altogether more interesting subject, try ...

Can anyone spot my goofy mistake?

Thanks in advance!

Graham
 
Hi Wullie

Removed on other pages, but same effect - I added it as a test only, so I'll remove it on all pages now.

Thanks for trying.

Graham
 
Hi mate,

In your stylesheet,

.smallform {font-size: 9px;margin:10px;
background-color: rgb(255,255,200)
font-family: verdana,helvetica,arial,sans-serif;
color: rgb(120,100,80);
background-color: rgb(255,255,255)}

should be:

.smallform {font-size: 9px;margin:10px;
background-color: rgb(255,255,200); <------- Notice here.
font-family: verdana,helvetica,arial,sans-serif;
color: rgb(120,100,80);
background-color: rgb(255,255,255)}

If that doesn't help, let me know and I will take another look. I don't have access to NS6 right now so can't test it here.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Hi Wullie

Nope, still the same - but thanks for spotting the error!
I've corrected the .css file now.

Seems to work OK if I embed the .css in <style></style> in the documents' header. But I don't want to do this on all pages.

I've put a sample page, just for example, with embedded style at
Question is ... why won't Netscape6.2 read my separate file??

If I enter on the address bar of Netscape6.2 I am told this....


Forbidden
Remote Host: [195.92.67.66]

You do not have permission to access
Data files must be stored on the same site they are linked from.


But they ARE stored on the same site!!! I can readily open and read them with IE

Thanks again

Graham
 
Hi mate,

The forbidden error is because you are trying to access the css file directly.

A lot of servers do this to prevent you from using their servers as storage space and linking directly to the files from other sites.

I can't get access to NS6 just now, but will have a look as soon as I can.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
If you're opening a link tag, how come you're not closing the tag? Doesn't that make everything after it part of the link? Doesn't that result in world destruction?

Curious,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
For what it's worth, it looks fine, and the same as IE 5.5, with Netscape 7.1.

There's always a better way. The fun is trying to find it!
 
run your CSS through the W3C validator:

then run your HTML through the HTML validator:

if all else fails, create a totally plain boring page that links to a totally plain css which sets body color to red or something, and test that.

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Hi Chris,

That looks promising. I've asked my ISP to investigate and try to add compliance for serving CSS mime correctly. I'll report the results when I get them.

Thanks for everyone's efforts!

Graham
 
Hi Guys,

I might be wrong but I can't see it being the mime types, tviman has already pointed out that 7.1 worked and I verified Mozilla works.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Hi mate,

The reason it doesn't let the validator read it is because the file is being called directly and the server has disabled remote linking. (See about 7 posts above)

My thinking was that NS may have a problem with this but because this only happens in NS6 and I've never seen anything about this made me believe this was not the case.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Hmmmm... sorry Wullie, missed that earlier post. However, the fact that it spits out an error when you type the CSS file URL into the address bar of NS6.2 is surely significant?

The browser has to request the CSS file seperately to the main HTML file. It must send some kind of HTTP header (HTTP_REFERER?) to tell the server &quot;I'm not a bandwidth-thief, I'm a browser reading the main page&quot;. Could there be some security setting on {maharg's copy of} NS6.2 that suppresses the sending of HTP_REFERER? How does IE allow us to enter the CSS file's URL directly? How does the server know what to do?

If it's going to cause cross-browser issues like this, it seems like a good idea to disable this anti-bandwidth-theft facility for CSS files if possible. They're only little files after all.

-- Chris Hunt
 
Hi mate,

However, the fact that it spits out an error when you type the CSS file URL into the address bar of NS6.2 is surely significant?

I get the same thing in IE.

The browser has to request the CSS file seperately to the main HTML file. It must send some kind of HTTP header (HTTP_REFERER?) to tell the server &quot;I'm not a bandwidth-thief, I'm a browser reading the main page&quot;.

When the browser requests the file, it is a seperate request but made from the page in question. I don't know enough of the actual way it works to say either way.

Could there be some security setting on {maharg's copy of} NS6.2 that suppresses the sending of HTP_REFERER?

Very possible.

How does IE allow us to enter the CSS file's URL directly? How does the server know what to do?

Tell IE to open the CSS file in explorer rather than Notepad, I think makes a difference.

If it's going to cause cross-browser issues like this, it seems like a good idea to disable this anti-bandwidth-theft facility for CSS files if possible.

This looks like its implemented server-wide, maybe this is an issue with NS6 and the host isn't aware of it.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Could this possibly be that the permissions on the css file aren't set correctly?

If it's in the same directory as the html pages then there shouldn't be any problem with css or js file extensions - unless the server software hasn't been set up correctly or, as has been stated previously, is actually looking for calls to such a file and blocks them (which doesn't make any sense).

The only other thing I can think of is that the file was uploaded in binary mode and got scrambled in the process.

There's always a better way. The fun is trying to find it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top