I have a box that I made in CSS and I want it to be aligned to the center. Unfortunately I have looked all over and cannot find an answer that works.
HTML:
<div id="top_bar">
<div class="inner">
</div>
</div>
CSS:
#top_bar {
vertical-align:text-top;
width: 90%;
/*padding: 10px;*/
border: 3px solid gray;
/*margin: auto;
margin-left: auto;
margin-right: auto;*/
position: fixed;
bottom: 0px;
}
#top_bar .inner {
padding:10px;
}
body { margin-left:0px; }