I've been trying to make a full width background image in the site defining its height but the image is has 5px
blank in the left and right side of the screen. When defined the CSS
for the background in the body section it is perfect but while defining in the div
part, 5px
blank in the left and right side of the screen that is not intended.
CSS:
body {
background: url(images/bg.jpg) #FFFFFF repeat-x;
font: normal 12px verdana;
color: #9C9C9C;
line-height: 125%;
}
#top_banner {
width: 1000px;
margin: auto;
height: 120px;
}
#menu_bg {
width: 1000px;
margin: auto;
background: url(images/menu_bg.jpg) no-repeat;
height: 86px;
margin-top: 7px;
}
#menu {
width: 805px;
float: right;
margin-top: 40px;
}
#slider_bg {
background: #CCCCCC;
height: 362px;
width: 100%;
}
#slider {
background: grey;
height: 362px;
width: 1000px;
margin: auto;
}
#bigmenu_bg {
background: #333745;
height: 427px;
margin-top: 4px;
}
HTML:
<body>
<div id="top_banner"></div>
<div id="menu_bg">
<div id="menu"></div>
</div>
<div id="slider_bg">
<div id="slider"></div>
</div>
<div id="bigmenu_bg"></div>
</body>