How about making the container position:relative
and positioning the arrows absolutely?
.container{position:relative;}
.prev, .next {
background: #000;
height: 50px;
width: 20px;
position:absolute;
top:50%;
margin-top:-25px;
}
.prev {left:0;}
.next {right:0;}
h1 {
text-align: center;
padding:0;
margin:0;
margin:0 20px;
}
Demo at http://jsfiddle.net/gaby/M4crZ/1/
Original attempt did not center the text vertically...
Try this one better
.container{position:relative;display:table;border:1px solid #ccc;}
.prev, .next {
background: #000;
height: 50px;
width: 20px;
position:absolute;
top:50%;
margin-top:-25px;
}
.prev {left:0;}
.next {right:0;}
h1 {
text-align: center;
padding:0 20px;
margin:0;
display:table-cell;
vertical-align:middle;
}