467,074 Members | 977 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

Banner width and Firefox problem

The banner show in my site looks OK in IE 6, but when viewed in Firefox things start to go wrong.

The banner is fine in IE6 when viewed on my PC with 17´monitor but when viewed on a laptop (15´inch) and a monitor with 19 inch it only stretches 75% across.

I have tried to play around with width size and other things but to no avail.

Any help in this matter would be greatly appreciated.
link to site is www.webfactory365.com


Jan 20 '08 #1
  • viewed: 1124
1 Reply
Expert 4TB
The problem, as always, is you are using IE as your reference when you laid out this site and use IE as your reference as to how things should work. However, all versions of IE are 10 years behind web standards and buggy so when you hold IE up as your reference, you are using an old, buggy non-standard browser to test your markup.

So what happens to your markup? You create old, buggy non-standard markup and expect it to work in modern browsers. So don't do that anymore. Always, always use Firefox or Opera or Safari as your initial test for how things should work and to make sure your markup is correct. Then we know it will probably work fine in all browsers except, perhaps, IE, but at least you know it's not you or your markup.


On your first line you are properly using the xml declaration for an xhtml page. (<?xml version="1.0"?>) However, IE chokes on modern things and goes into quirks mode and won't work like any other browser that does understand that. No version of IE even works with XHTML but that's another story.

So you can safely remove the xml declaration, but then you have to validate your html which, right now, has 32 errors. Then validate your css which appears OK right now.

Then see how your page is working in Firefox, make any necessary corrections. Then check in crappy IE to see if it screws everything up. Whatever bugs you discover are known, as are the hacks to fix it.

But let's get that far first.
Jan 21 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Patrick Rouse | last post: by
10 posts views Thread by Yohann L. | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.