-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is there a way to add a header and footer on each page? #14
Comments
Thanks! Good question. Yes, this is possible, and quite easily, even. First, define your header and footer elements after the opening <div id="pageHeader">My header ...</div>
<div id="pageFooter">My footer ...</div> Now, the ideal way would be to assign Luckily, there’s a simple workaround. Just use the following CSS instead: #pageHeader {
position: fixed;
top: 0;
}
#pageFooter {
position: fixed;
bottom: 0;
} The downside? This will only work in Perhaps we’ll add something like this to the examples as well. Let’s keep this issue open until then. |
@aghaynes It looks like there is sufficient space in your case to move the header upward and the footer downward, right? Did you check the |
Thanks @ocram. I've played around with e.g.
It seems to work with
But that breaks the flow of the document and requires specific input on where to break pages... is there a way to close the div and open a new one automatically for the rest of the content if it's already full? (and also puts the page number (senso #17) perhaps, maybe thats easier in the footer though...) Sorry if thats a stupid question - i'm pretty new to css and html... |
Nice template,
is there a way to add a header and footer on each page?
The text was updated successfully, but these errors were encountered: