Hi,
I am using some CSS to position a footer and header on a page.
I am quite new to CSS positioning, so am not completely comfortable in what I'm doing.
I have the following CSS
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
background-color: #FFFFFF;
margin-top: 3%;
margin-right: 5%;
margin-bottom: 3%;
margin-left: 5%;
}
.footer {
font-family: Arial, Helvetica, sans-serif;
font-size: 9px;
font-weight: lighter;
text-align:center;
color: #999999;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #999999;
position: fixed;
padding-top: 2px;
padding-bottom: 1%;
bottom: 0px;
width: 89%;
}
.header {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #0099CC;
width: 89%;
padding-top: 1%;
padding-bottom: 2px;
position: fixed;
top: 0px;
}
which is currently doing several things I am not happy with.
Firstly, in Internet Explorer the footer is moved over to the right and is not central, although this is not an issue in Firefox.
Secondly, the header and footer stay completely in place when I have a page with large amounts of content, which I know is because I have used the fixed positioning attribute, but how can I have it allow the header and footer to stay at the top and bottom and be scrollable too.
Thirdly, with them in place as they are at the moment (which i will want to use in certain situations) the text at the top or bottom of the page scrolls over the header and footers as the page is scrolled. Is there a way to have them jump over it?
Finally there seems to be a faint line always at the top of the page and a thick one at the bottom (although I have only noticed this in Firefox. Not IE 7).
Any help on these issues would be most appreciated.
Thanks a lot!
Matt