zhpower — 2012-04-02T16:55:06-04:00 — #1
I'm a newbie so please be nice..
I have some experience with CSS and what I am tring to accomplish is to add a header and footer (UNCLASSIFIED) to all pages when printed. The browser we use is IE 6 and 8.
Seems to work except that it overlaps my text at the top and bottom of each page. I read about using tables but I'd like to avoid that for a number of reasons.
Can someone help?
This is what i have in my html files
In this CSS:
ryanreese — 2012-04-02T19:10:30-04:00 — #2
Well in the HTML files you have divFooter as the class both times, and the CSS you posted there is a separate divHeader and divFooter. Could it be something as easy as that?
Could be a careless mistake, but this might be the issue :).
zhpower — 2012-04-03T09:22:44-04:00 — #3
Good catch. I just typed it wrong. It's correct in my files.
Any other suggestions?
ryanreese — 2012-04-03T10:55:51-04:00 — #4
Is there enough information in each div that it would overlap on a smaller screen?
If this is an intranet site and you ahve control if people have JS on, you could set it so that the header div is top:0 and the height stops at 50%, and the footer starts 50% down and goes to the end of hte page.
Since the divs start at the top and bottom, if there is enough content, it will overlap. Your best bet would just be to eliminate the position:fixed and just let the document flow normally :).
technobear — 2012-04-03T12:11:36-04:00 — #5
I've amended it in your post so it doesn't cause confusion.