Reputation: 7338
I'm writing a print stylesheet for my pages. each page has a footer. and the footer should stay at bottom of the printed page.. if it has 30pt
white spaces before. (if there is 30pt
spaces between main content and footer, footer should fix at bottom; else, it should go to next page)
because I'm using print stylesheet, I think I can't use JavaScript
to check and fix it. (so please suggest a style solution)
Thanks.
Upvotes: 0
Views: 86
Reputation: 153
you doesn't specify your code, anywhere i think by using position property you can fix your footer.
.footer{
position: fixed;}
Upvotes: 0
Reputation: 1548
You don't need JS, just CSS - I use the sticky footer solution here: http://www.cssstickyfooter.com
Upvotes: 1