Inita: body bg zentriert

Beitrag lesen

Cheatah,

ich hab etwas rumgeschaut und habe zwar das Problem geloescht.
Mit diesem 1px, es scheint, er rechnet das content width von browser Raender, und wenn es negativ ist, dann rechnet er 1px plus, ungefaehr so hast du mir auch geschrieben.
Aber, wenn ich doch bg in body legen will, dann kann ich mal machen, dem body min-width muss ich nur definieren, da das bg on browser resize weg laeuft. Und 1px problem hab auch geloescht, hier das code.
Everything works fine on IE6 Opera FF.

  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml">  
<head>  
  <title>Hello!</title>  
    <style type="text/css">  
    html,body{  
        margin:0;  
        padding:0;  
        height:100%;  
        background:url(graybg.jpg) center repeat-y}  
    body{  
        min-width:499px}  
    div#d1{  
        background:url(bluebg.jpg) center repeat-y;  
        height:70px}  
    div#d2{  
        width:469px;  
        margin:0 auto;  
        padding:15px}  
    </style>  
</head>  
<body>  
    <div id="d1">  
        <div id="d2">  
            <p>Some text</p>  
        </div>  
    </div>  
</body>  
</html>