<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>middle div</title>
<style type="text/css" media="screen">
#left_container, #middle_container, #right_container {float:left;margin-left:5px;color:#fff;}
#left_header, #middle_header, #right_header{width:200px;height:200px;margin-bottom:5px;background-color:#888;}
#left_footer, #middle_footer, #right_footer{background-color:#555;}
</style>
</head>
<body>
<div id="left_container">
<div id="left_header">left_header</div>
<div id="left_footer">left_footer</div>
</div>
<div id="middle_container">
<div id="middle_header">middle_header</div>
<div id="middle_footer">middle_footer</div>
</div>
<div id="right_container">
<div id="right_header">right_header</div>
<div id="right_footer">right_footer</div>
</div>
</body>
</html>
body { margin:0; padding:0; }
#outerHeader {
background:url(your background image or color);
width:100%;
}
#innerHeader {
margin:0 auto;
background:url(your background image or color) no-repeat;
width:width of your image or desired div width;
height:height of your image or desired div height;
}
<div id="outerHeader">
<div id="innerHeader"></div>
</div>
body { margin:0; padding:0; }
#outerHeader {
position:absolute;
left:0;
background:url(background image or color);
width:50%;
height:height of your innerHeader image or div height;
float:left;
}
#innerHeader {
position:relative;
margin:0 auto;
background:url(background image or color) no-repeat;
width:width of your image or desired div width;
height:height of your image or desired div height;
z-index:100;
}
<div id="outerHeader"></div>
<div id="innerHeader"></div>
#outerHeader {
position:absolute;
top:10px (or whatever value works for you);
left:0;
background:url(background image or color) repeat-x;
width:100%;
height:height of this divs background image;
}
#innerHeader {
position:relative;
margin:0 auto;
background:url(background image or color) no-repeat;
width:width of image;
height:height of image;
z-index:100;
}
<div id="outerHeader"></div>
<div id="innerHeader"></div>