Page 1 of 1

Stylesheet is not recognized by Internet Explorer on Mac

Posted: Thu Oct 27, 2005 3:57 pm
by tastar
Script URL: www.tastarsupply.com/gbook
Version of script: 1.33
Version of PHP: 4.3.10

Have you searched THIS FORUM for your problem: Yes
If so, what terms did you try: Internet Explorer, Stylesheet, etc.

Write your message below:

I am implementing guestbook - seems to be very nice. It works well in FireFox and Safari (although I have some wierd table centering issues) on a Mac in OS X, but in IE 5.2 (latest version), the stylesheet isn't being recognized. All text is the default font, although somehow it is picking a default green that I am using and red hovers. But, the text in the left column should be white, 10px with black hovers. I think all of the text that is missing styles is in header.txt

Is there some coding change that I need to make to get IE to see the stylesheet? I haven't checked it on a PC, so who knows what will happen there!

Posted: Thu Oct 27, 2005 4:24 pm
by Klemen
All the CSS included is standard CSS with standard inclusion link so I have no idea why MAC would have problems with it?

Posted: Thu Oct 27, 2005 5:14 pm
by Henrie
Hello tastar,

I have looked into the code of your page and think the error is in your coding.
You use a <nss> tag with a style class for styling your text. But nss is not a standard html tag.
Try replacing <nss class="..."> .... </nss> with <span class="..."> .... </span>.

Greetings,
Henrie

Edit:
And don't forget to change the styles in the style.css file from nss. to span.

FIx for Internet Explorer Mac Problem

Posted: Thu Oct 27, 2005 6:33 pm
by tastar
Thank you guys.

As Henrie pointed out, it was not a Mac problem but a coding problem. I had the css messed up by not using a standard html tag. Once I fixed it according to Henrie's suggestion, everything fell into place. I was lucky to get things to display correctly in Firefox and Safari - in fact, it doesn't seem like they should have worked either. But, in any case, doing it correctly fixed the problem.

Again, than you very much for the fast response.

Tony from tastar