Just try this layout. I think this will help you fix this problem.
Script Link
HTML:
<div class="outer-div"> <div class="top-bg"> <div class="container"> <p>sadasdasdasdsad</p> <p>sadasdasdasdsad</p> <p>sadasdasdasdsad</p> <p>sadasdasdasdsad</p> <p>sadasdasdasdsad</p> </div> </div> <div class="middle-bg"> <div class="bg-bottom-div"></div> </div> <div class="footer"></div> </div>
CSS:
.outer-div { background:#000; } .top-bg { padding-bottom:40px; } .container { background:#fff; width:400px; margin:0 auto; } .middle-bg { background:#880015; } .bg-bottom-div { background:#fff; width:400px; margin:0 auto; height:60px; position:relative; top:-20px; } .footer { background:#00a2e8; height:40px; }
source share