Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6878609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:44:42+00:00 2026-05-27T04:44:42+00:00

<div id=header>header</div> <div id=content> content spanning several pages… </div> <div id=footer>Footer – Fixed at

  • 0
<div id="header">header</div>
<div id="content">
    content spanning several pages...
</div>
<div id="footer">Footer - Fixed at the bottom of each page</div>

I want to print #header and #footer on every page in print mode. I searched a lot but nothing seems to work, even position:fixed doesn’t work as expected.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:44:43+00:00Added an answer on May 27, 2026 at 4:44 am

    If you’re willing to switch over to tables for your layout (not necessarily ideal), you can do it with the <thead> and <tfoot> elements. They’ll print at the top and bottom of every page:

    <table>
    
      <thead>
         <!-- Will print at the top of every page -->
      </thead>
    
      <tbody>
         <!-- Page content -->
      </tbody>
    
      <tfoot>
         <!-- Will print at the bottom of every page -->
      </tfoot>
    
    </table>
    

    Another option is to use display table-header-group and table-footer-group but cross-browser support isn’t great:

    #header {
      display: table-header-group;
    }
    
    #main {
      display: table-row-group;
    }
    
    #footer {
      display: table-footer-group;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my site has three div elements, header, content and footer. i have a picture
I have multiple menues on my page... <div class=menu> <div>Menu header</div> <div>Menu content</div>// should
I have an HTML page layout - something like this: <div id='header'> Header content
I have a page setup as follows <div class="Header"> Header content </div> <div class="Content">
I have 3 div elements < div id=header>FIXED CONTENT< /div > < div id=content>DYNAMIC
I have a div (.header) contained within other divs. When my page loads, momentarily
I'm implementing a table with a fixed header using this kind of setup: <div
I have a simple page setup such as: <div id=aboutUs> About us content... </div>
<div id=header-content> <a href=@Url.Action(Index, Home)> <img class=mainlogo src=@Url.Content(~/Public/images/logo.png)/> </a> @{ using (EFJugadorRepository repository =
I'm trying to create a simple markup with header+content+footer+sidebar. The sidebar must float above

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.