I'm writing the code for a fixed width design and I have a very simple problem that I can't seem to get around:
<div style="background-color:black">
<div style="width:900px;margin:0 auto">
content
</div>
</div>
If the browser window width is, let's say, 500px, then the black background takes only 500px width and the inner div stays at 900px. Why isn't the outer div taking up 900px to acomodate the inner div?