467,910 Members | 1,731 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

design varies in IE and FF - CSS compatibility issues


i am a novice in web design -- but i love to learn and do things my own -- in jan i launched my site -- it was a downloaded css template and i just made the necessary changes -- now a subsite has been include -- both tables and css are used in it -- IE displays it correctly but in FF it is not the same --

can any one help me --


Apr 5 '07 #1
  • viewed: 1109
1 Reply
Expert 4TB
The problem is two-fold. First, there is no doctype. This puts IE into 'quirks mode' which means it uses what is known as the infamous "broken box model", ie, an error Microsoft introduced in Internet Explorer and the world has paid the price for it since.

Second, the page is missing elements which are listed by using the W3C validator. But first, you must add a proper doctype.

All these things are discussed in the stickies at the top of this board. The doctype you should use is this one:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2.    "http://www.w3.org/TR/html4/strict.dtd">
Remember that if your page works in IE but not Firefox then something is wrong with your code. Firefox and Opera are modern, standards compliant browsers while IE is old, buggy and non-compliant. So always do initial testing in the modern browser first.
Apr 5 '07 #2

Post your reply

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

Similar topics

3 posts views Thread by Rob Oldfield | last post: by
2 posts views Thread by G2 | last post: by
17 posts views Thread by tshad | last post: by
2 posts views Thread by Calvin KD | last post: by
reply views Thread by YellowFin Announcements | last post: by
8 posts views Thread by obrianpatrick | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.