I've got two exact copies of a website, one on server A and another on server B. When I access the site on server A, it looks fine. On server B, the header image on the home page is pushed down about an inch.

What are the possible causes of the same code being displayed differently by different servers?

I'm using IE8.

1 answer

danwellman 5600
1
point

Are the pages being served as the same mime-type? IE8 (or any IE) does not support application/xhtml+xml which is what xhtml should be served as. If one server served pages as text/html and the other as application/xhtml+xml it could trigger a bug in IE maybe..?

Answered almost 7 years ago by danwellman
  • Yes, I think this is a likely reason. The web servers might have (or not) injected different headers in the http response which triggered a different doctype rendering. Make sure you have doctype declared in the html files, though I'm not too sure how the browsers choose between the header and the doctype declaration if they are different. o.k.w almost 7 years ago