Forum Moderators: not2easy

Message Too Old, No Replies

Help CSS problem in NS 7.1

working fine in IE need someone to take a look

         

moishe

8:24 am on Apr 15, 2004 (gmt 0)

10+ Year Member



Howdy Ya'll
I'm in a pickle, I am building a site for a nonprofit that is supposed to launch Monday, today I uploaded a couple of pages and they look as they are supposed to on IE but I have done something that is keeping NS from seeing the style sheet.
If someone has a minute and wants to save me, please have a look and see if anything jumps out. My working directory is at tufc.itforhire.com. (if this addy has to be edited out, just email me and I'll send it to you)
Thanks to anyone who has a minute to look.
Again, thanks thanks thanks

Stratus42

9:49 am on Apr 15, 2004 (gmt 0)

10+ Year Member



Hey!

something very strange is going on there..

I opened your page in Firefox.. and, as predicted, it wasn't picking up the stylesheet.. so.. I copied your css and your top page htm file to my desk top.. .. I changed the path of your style sheet link to this:

<link rel="stylesheet" type="text/css" href="tufc.css" />

the href used to be this: href="css/tufc.css"

because they were now both in the same directory..

and suddenly it worked. it was picking up the stylesheet.. not everything was displaying how you probably wanted it to.. but at least it was displaying.. - so once you get it to pick up the style sheet, you'll probably have some tweeking to do....

sorry I can't be of more help

Lana

SuzyUK

10:00 am on Apr 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi..

I'm breaking the rules by looking, but I'm stumped.. the problem is also there on your own home page.. and it's not just NS7.1 it's there in Firefox too

normally I would say validate the HTML and CSS but they're both valid :)..

So I'm not sure here but I reckon its some type of MIME type setting..

[added] Just found this devedge article [devedge.netscape.com] which sounds like it ..[/added]

Suzy

Stratus42

10:03 am on Apr 15, 2004 (gmt 0)

10+ Year Member



hey suzy..

you probably have something with the mime type thing.. but why do you think I was able to get his pages to work when all I changed was the location and path of CSS? when I moved them to my desktop, and change the css href - firefox understood.. but it certainly didn't when I tried to view the page directly.

very strange.. I suspect the real problem lies in poltergeists in the internet and we may need an exorcism..

Lana

SuzyUK

10:13 am on Apr 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Lana..

but why do you think I was able to get his pages to work..

.. because the problem will only occur if the files are on a server with an incorrectly configured mime type (i.e. Online).. which is why it would've worked fine in hisser testing offline.. I think anyway ;)

Suzy

moishe

6:00 pm on Apr 15, 2004 (gmt 0)

10+ Year Member



thanks all, was server issue, htaccess file fixed, now I can work on tweaking appearance in netscape, again thank thanks thanks

moishe

7:34 pm on Apr 15, 2004 (gmt 0)

10+ Year Member



now if I can just figure out why ie and ns position things differently when I am using absolute positioning, man I've got a long way to go to get good at this

SuzyUK

8:23 pm on Apr 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi moishe.. glad it helped.. I didn't know about this issue before today ;)

regarding the positioning.. I saw you're using <p> elements in your top nav section.. which is fine.. but you should be aware that there are default margins on some elements. <h>, <p>, <ul> to name a few..

These will affect positioning crossbrowser... as a general rule you could try to set all <h> & <p> elements to zero margin and use padding instead to control any spacing required.. also <html> and <body> have default settings so making sure these are both at zero too will help make sure the "canvas" is working from the same co-ordinates in the first place.

that should also then help position them..
e.g.
html, body {padding: 0; margin: 0;}
p {margin: 0; padding: 0;}
#content p {padding: as required..}

Suzy

moishe

10:01 pm on Apr 15, 2004 (gmt 0)

10+ Year Member



Thanks
I had realized this when I started comparing IE and NS and fixed it. Again thanks for your help, I had not run into this before because I wast using 4.01 STRICT and so the server obviously had no problem with it. I guess I need to move along to XHTML strict and be done with it.
Again,
Thank you very much

jetboy_70

10:23 pm on Apr 15, 2004 (gmt 0)

10+ Year Member



It'll do it with an XHTML doctype too :(

I tended to use PHP in my CSS files without sending a corrected MIME header. Everything was fine with Netscape 6, but it took me ages to work out what was wrong when I first upgraded to Netscape 7 and all my CSS fell over!