...

View Full Version : Trouble with Inconsistencies between IE and FF



Jag2112
12-20-2006, 10:03 PM
Greetings All,

I'm having some trouble with pages on my site that are displayed slightly differently when viewed using FireFox/NetScape in place of Internet Explorer.

Case in point: http://www.cygnus-x1.net/links/rush/index.php

When you view this page with IE, everything looks/works fine.

However when viewed with FF/NS, the "Welcome" image begins to repeat itself vertically on the bottom of the image for about 10-15 pixels . I think this is related to cellpadding, but various tinkering with the values caused more issues than it fixed.

I realize there are always going to be some discrepancies between how IE and FF handle a page, but this one has me scratching my head.

Any insight would be appreciated.

Thanks ... and Happy Holidays...

-John
www.cygnus-x1.net

felgall
12-20-2006, 10:48 PM
The two comments in front of the DOCTYPE are puting IE into quirks mode so it is iincorrectly including the padding inside the size of elemnts instead of adding the padding outside of the element the way that browsers that follow the standards do.

As your table with the welcome image background has a padding of 10 this means that the table is 20 pixels shorter in IE than it is supposed to be.

Remove the 2 comments so that the DOCTYPE comes first to get IE out of quirks mode and then adjust the size of the content of your page so that it works correctly for Firefox/Opera/Safari/etc. Once it looks right in compliant browsers you can then check if it needs any IE specific adjustments to take into account IE7 being several years behind the current web standards. With the code you have, if you get it right in Firefox and get IE out of quirks mode it will probably look OK in IE without needing any further IE specific changes.

Jag2112
12-20-2006, 11:08 PM
Interesting. Thanks for the tip. I'll give it a shot.

-John

yonni
12-20-2006, 11:47 PM
In general, get things working for Firefox/Safari/Opera/etc first and then insert specific fixes for IE.

On another note, IE7 complains "Object Expected" on line 273 (you probably already know this).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum