Okay, now I don't see the problem.

You may have to explain it to me more in depth. First off, you are applying your margin to both html, and body, so you are effectively getting a margin of 40 px on both sides. This dispalys fine for me in both chrome and FF.
See attached overlay of the two browsers, there are other inconsistencies, but the margins seem fine? I am using Windows 7.