By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,738 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,738 IT Pros & Developers. It's quick & easy.

Banner width and Firefox problem

P: 2
hi,
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


Thanks

Richard
Jan 20 '08 #1
Share this Question
Share on Google+
1 Reply


drhowarddrfine
Expert 5K+
P: 7,435
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.

So...

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.