Full-width header and footer (tiled bkg image) with centered image over?
Hi all,
I've created a new CSS layout with full-width header and footer and fixed/centered content area of 960px. Both the header and footer contain a background image that is tiled x-repeat. What I would like to be able to do is add a 960px wide image to both the header and footer area that centers so it's inline with the content. I'm just not sure of the correct/standard way of doing this.
My CSS code is below. I have checked it on W3C and it validates as CSS 2.1 with no errors. Any assistance regarding the image over the background image issue would be much appreciated. Thanks for your time. Ginger
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
}
body {
background-color: #FFFFFF;
border-style: none;
color: #555555;
font: normal normal normal 11px Verdana, Arial, Helvetica, sans-serif;
line-height: 21px;
margin: 0 0 0 0;
padding: 0 0 0 0;
text-align: center;
text-decoration: none;
}
h1 {
color: #0084A9;
font: normal normal bold 25px Arial, Helvetica, sans-serif;
line-height: 21px;
text-decoration: none;
}
h2 {
color: #555555;
font: normal normal bold 21px Arial, Helvetica, sans-serif;
line-height: 21px;
text-decoration: none;
}
h3 {
color: #0084A9;
font: normal normal bold 15px Arial, Helvetica, sans-serif;
line-height: 21px;
text-decoration: none;
}
h4 {
color: #555555;
font: normal normal bold 12px Arial, Helvetica, sans-serif;
line-height: 21px;
text-decoration: none;
}
h5 {
color: #555555;
font: normal normal normal 10px Arial, Helvetica, sans-serif;
line-height: 21px;
text-decoration: none;
text-transform: uppercase;
}
h6 {
color: #555555;
font: normal normal normal 9px Arial, Helvetica, sans-serif;
line-height: 21px;
text-decoration: none;
text-transform: none;
}
a, a:link {
color: #555555;
font: normal normal bold 11px Verdana, Arial, Helvetica, sans-serif;
line-height: 21px;
text-decoration: none;
}
a:visited {
color: #555555;
font: normal normal bold 11px Verdana, Arial, Helvetica, sans-serif;
line-height: 21px;
text-decoration: none;
}
a:hover {
color: #0084A9;
font: normal normal bold 11px Verdana, Arial, Helvetica, sans-serif;
line-height: 21px;
text-decoration: none;
}
a:focus {
color: #0084A9;
font: normal normal bold 11px Verdana, Arial, Helvetica, sans-serif;
line-height: 21px;
text-decoration: none;
}
a:active {
color: #0084A9;
font: normal normal bold 11px Verdana, Arial, Helvetica, sans-serif;
line-height: 21px;
text-decoration: none;
}
#pp-header {
background-color: #0084A9;
background-image: url(/*INSERTURL*/);
background-position: top center;
background-repeat: repeat-x;
border-style: none;
font-size: 18px;
font-weight: bold;
height: 305px;
line-height: 15px;
padding: 0px 0px 0px 0px;
text-align: left;
}
#pp-navigation {
background-color: #413000;
background-image: url(/*INSERTURL*/);
background-position: top left;
background-repeat: repeat-x;
border-style: none;
height: 25px;
padding: 10px 10px 10px 10px;
}
#outerWrapper {
background-color: #fff;
margin: 0 auto 0 auto;
overflow: hidden;
text-align: left;
width: 960px;
}
#outerWrapper #contentWrapper {
overflow: hidden;
}
#outerWrapper #contentWrapper #pp-content {
background-color: #FFFFFF;
border-style: none;
float: left;
margin: 0 0 0 0;
padding: 35px 25px 25px 25px;
width: 660px;
}
#outerWrapper #contentWrapper #pp-sidbar {
background-color: #FFFFFF;
border-style: none;
float: right;
margin: 0px 0px 0px 0px;
padding: 35px 25px 25px 25px;
width: 190px;
}
#pp-footer {
background-color: #413000;
background-image: url(/*INSERTURL*/);
background-position: top left;
background-repeat: repeat-x;
border-style: none;
height: 90px;
padding: 10px 0px 10px 0px;
}
html, body {
height: 100%;
}
#outerWrapper {
min-height: 100%;
position: relative;
}
* html #outerWrapper {
height: 100%;
}
#pp-footer {
margin-top: -110px;
position: relative;
}