8 replies [Last post]
headbirth
Offline
Regular
Last seen: 13 years 22 weeks ago
Joined: 2005-04-26
Posts: 21
Points: 0

Hi, I have a site I'm mocking-up and for some reason IE (Mac) will not execute the code I have for the nav links at the top of the page. Safari and Firefox are fine. I'm wondering if it has to do with the class being placed in the anchor tag.

Can someone check take a look and maybe check to see if IE for Windows works.

I would appreciate any light that can be shed on this. Thanks, the link is:

http://www.nomadicmind.com/Client/thomasgirard/

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 13 weeks 1 day ago
Joined: 2004-06-30
Posts: 9674
Points: 810

Code problems in IE for Mac ... can someone...

headbirth, you need to use a full doctype and add the <html> tag at the top. Then it will validate fine.

As for IE Windows, the menu links work fine - the same in Firefox.

The only difference is, the page is not centered.

Verschwindende wrote:
  • CSS doesn't make pies

headbirth
Offline
Regular
Last seen: 13 years 22 weeks ago
Joined: 2005-04-26
Posts: 21
Points: 0

Code problems in IE for Mac ... can someone...

I thought I screwed up there somehow ... copyed that section from an old file, must have missed something.

Any idea why it's not centered in IE Windows? Can you post a screen capture?

headbirth
Offline
Regular
Last seen: 13 years 22 weeks ago
Joined: 2005-04-26
Posts: 21
Points: 0

Code problems in IE for Mac ... can someone...

Hmmm ... it still doesn't seem to work. Infact it seems to have caused the green block to disappear.

I turned on script error alert in IE and it's saying my JS code has an object it doesn't recognize. The line:

document.graphic.src = "Content/Graphics/Pills.jpg";

However, I have used this before without IE having problems with it.

Any ideas?

headbirth
Offline
Regular
Last seen: 13 years 22 weeks ago
Joined: 2005-04-26
Posts: 21
Points: 0

Code problems in IE for Mac ... can someone...

Ah hah! IE wasn't accepting the ID tag I had in an image, but it does except the use of the NAME tag.

The other thing is that the use of the URI in the doctype causes the green bloack to disappear, but when I remove the URI it all seems fine?

Any ideas on why and if the URI is really necessary?

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 13 weeks 1 day ago
Joined: 2004-06-30
Posts: 9674
Points: 810

Code problems in IE for Mac ... can someone...

Without the URI, IE is thrown into Quirks Mode.

Verschwindende wrote:
  • CSS doesn't make pies

briski
briski's picture
Offline
Elder
London
Last seen: 9 years 1 week ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

Code problems in IE for Mac ... can someone...

Which, to explain if you don't know, means that it will be using a different rendering model which is why the layout changes.

It's always best to have it not thowing itself into quirks mode, ie include the URI, and get it working nicely. It will cause you a lot less problems in the long run I assure you, although you might have to make some minor changes at the moment to make it better.

Joseph Sprint
Joseph Sprint's picture
Offline
Enthusiast
Last seen: 6 years 42 weeks ago
Timezone: GMT+1
Joined: 2005-04-15
Posts: 381
Points: 0

Code problems in IE for Mac ... can someone...

hello

Just a small point here.

If you are going to put an ALT tag on your design elements, I would suggest placing an empty TITLE tag next to them. This is so Internet Explorer doesn't show a description when you hover over a piece of decoration.

In fact I would do this with all your images, only when you do want a pop up description, place it in the title="" tag.

This will please all browsers and force Explorer to behave properly, and impress people that you are doing one off the most used design errors correctly.

Decoration alt="Some Text" title=""
Content Image alt="Some Text" title="Some Popup Text"

headbirth
Offline
Regular
Last seen: 13 years 22 weeks ago
Joined: 2005-04-26
Posts: 21
Points: 0

Code problems in IE for Mac ... can someone...

Thanks for the input Joseph. I probably would of deleted the alt tags for the most part when I did the cleaning for the site, but think I'll use your title method instead on appropriate items.