Google's 404 page uses margins and padding to center the content inside the body tag like this:
body {
margin: 7% auto 0;
max-width: 390px;
min-height: 180px;
padding: 30px 0 15px;
}
The image of the broken robot is then set as a background image on the body tag and positioned to the top right so that it appears just to the right of the main content.
* > body {
background: url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;
padding-right: 205px;
}
The html styles look like this:
html {
background: #fff;
color: #222;
padding: 15px;
}
Why does the image appear in the top right hand corner of the page when the background color of the html tag is removed?
html {
//background: #fff;
color: #222;
padding: 15px;
}