Click here to Skip to main content
15,799,257 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello i hope you are fine
i have html page which i need to print it with customize margin i have done it with JavaScript my problem is that i have footer which should stick at the bottom of each page
but the page content overflow on the footer and covered it ? how can i make space between content and fixed footer

What I have tried:

<style type="text/css" media="print">
        @page {
            size: auto; /* auto is the initial value */
            margin: 1cm 1cm 1cm 1cm; /* this affects the margin in the printer settings */

<div id="content">
<div id="pagefooter">

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900