Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  • Thread Tools
  • Rate This Thread
  1. #1
    New to the CF scene
    Join Date
    May 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Print footer at bottom of last page chrome

    I am trying to make footer stick to the bottom of the last page of a multi-page document.

    The page content is dynamic so i cannot know the last page.

    I have tried below code but it made the footer appears of the first page only and if my content is large it will overflow the footer and not making content expand the page.
    Code:
    @media print {
    
        div.divFooter {
            position: absolute;
            bottom: 0;
        }
    }

  2. #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    9,864
    Thanks
    6
    Thanked 1,164 Times in 1,135 Posts
    Don’t use absolute positioning in print layouts, it’s very unreliable (as you might notice right now). Provided that the footer is the last thing in the HTML it should show up at the end of the content (i. e. the last page) anyway by default. You need to show us more than that (your entire HTML and CSS) for us to help you.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •