center a FIXED BOX
This BOX has a fixed width.
It is centered and adjusts to the browser window.
The height adjusts to the content.
more nice and free css templates
body {
background-color: #e1ddd9;
font-size: 12px;
color:#564b47;
padding:20px;
margin:0px;
text-align: center;
}
#inhalt {
text-align: left;
vertical-align: middle;
margin: 0px auto;
padding: 0px;
width: 550px;
background-color: #ffffff;
border: 1px dashed #564b47;
do not collapse. If you float an image with 20-pixel margins, therewill be at least 20 pixels of space around that image. If otherelements adjacent to the image -- and that means adjacenthorizontally and vertically -- also havemargins, those margins will not collapse with the margins on thefloated image, as we can see in Figure 7-65:P IMG {float: right; margin: 20px;}

Figure 7-65. Floating images with margins
(To resurrect the old paper-and-plastic analogy, the plastic margins
}