So Chrome and FF are ok, just IE9 fails to show html background – it shows its colour, but no image. How I can make it to work propertly?
Test it on: here
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
html {
width:100%;
height:100%;
background-color: #ffeacd;
background-image: url(bg.png);
background-position: 0px 0px;
background-repeat: repeat-x;
margin: 0px;
padding: 0px;
}
body {
background-position: center top;
width:100%;
height:100%;
margin: 0px;
padding: 0px;
background-image: url(bg_overlay.png);
background-repeat: no-repeat;
}
.content {
width:1020px;
height: 100%;
padding: 0px;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}
</style>
</head>
<body>
<div class="content"></div>
</body>
</html>
Seems IE is not allowing the background image tag on the html element. Try doing something like this.