#inner {
margin: auto 0;
}
#outer {
width:100%;
display: flex;
justify-content: center;
}
<div id="outer">
<div id="inner">Foo foo</div>
</div>
.<your-outer-div> {
display: flex;
justify-content: center;
('align-items: center' will allow you to vertically center too ;))
}
.container {
width: 980px;
margin: 0 auto;
}