Having trouble centering a div inside a 100% wide container.
Here is the HTML code:
<div id="body-outside">
<div id="body-inside">
content
</div>
</div>
And here is the CSS:
#body-outside{
width:100%;
float:left;
background-color:#F7B3DA;
}
#body-inside{
width:1280px;
margin:0 auto;
background-color:#F7B3DA;
float:left;
}
The content is currently aligned to the left of the screen. Any suggestions on how to center it?
Thank you.