このようなもの?
max-widthで遊んで、複数の幅でテストできます。
それがあなたに合っているかどうかを確認してください。
「将来性」のために、ここにコードをコピーします(ある日codepenが消えた場合)
HTML
<div id="buttons">
<div id="left">L</div>
<div id="right">R</div>
</div>
<div id="foobar">
<div id="content">
<p>content</p>
<p>content</p>
<p>content</p>
<p>content</p>
<p>content</p>
<p>content</p>
</div>
</div>
CSS
#foobar {
max-width: 800px;
margin: 0 auto;
padding: 0 50px;
}
#content {
background-color: #ddd;
}
#buttons {
width: 700px;
margin-left: -350px;
background-color: #aaa;
position: fixed;
left: 50%;
top: 50%;
}
#left, #right {
width: 50px;
height: 50px;
position: absolute;
background-color: red;
}
#right {
right: 0
}
JS(JQUERY)
$(function(){
refresh_buttons = function(){
w = $('#foobar').width() + 100;
$('#buttons')
.css('width', w)
.css('margin-left', -w/2);
};
refresh_buttons();
$(window).resize(refresh_buttons);
})