Forum Moderators: not2easy
I'm trying to use two background images for a site, one in the header and one in the footer. Part of the image streams outside the body area, both to the left and right.
Now, it's working properly in the header image, but the footer image is being cut off at the body size (which is 950px).
Now my coding is probably quite crude, and there may be a few lines of code which shouldn't be there because I'm using an old design as a base.
Here's the relevant code for the header image which is working properly:
body {
width: 950px;
background: #fff url(images/dietrifficbg.jpg) top center no-repeat;
color: #333333;
font-size: 12px;
font-family: Verdana, Helvetica;
margin: 0px auto 0px;
padding: 0px;
border-left: 0px solid #333333;
border-right: 0px solid #333333;
}
Here's the relevant code for the footer image which is not working the way I want:
#footer {
height: 300px;
width: 950px;
background: #fff url(images/dietrifficft.jpg) top center no-repeat;
color: #999;
font-size: 11px;
padding: 30px 0px 0px 0px;
margin: 0px auto 0px;
text-align: left;
line-height: 17px;
}
Help will be greatly appreciated.