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 6763343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:27:53+00:00 2026-05-26T14:27:53+00:00

I am using @media to print a header on each page when printing a

  • 0

I am using @media to print a header on each page when printing a screen in page in Firefox. I have my css set up like this:

@media print {
    div.printDivHeader {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.0em;
    position: fixed;
    display: block;
    width: 100%;
    height: auto;
    top: 0;
    }
}

The problem is the content of the second page overlaps with the print div header. (i.e., on the second page, the header doesn’t force the page contents down, and so I get text written over text). Is there some way to handle this?

  • 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-26T14:27:53+00:00Added an answer on May 26, 2026 at 2:27 pm

    Something with position: fixed; never pushes static (or relative) content. Either there is styling to ensure they do not overlap… or they overlap.
    See this example JSFiddle, which uses your css.

    The problem lies somewhere else.
    How does the header not overlap with the text in the first page? Do you have something pushing the text down? Margin-top? What?

    Is it possible to share either the original or a simplified example? (You can use JSFiddle.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have set footer-image in print page by using this code. @media print {
I'm using Windows Media Player in a web page. I have version 11 installed
Should we think about CSS media other than screen and print? http://www.w3.org/TR/CSS2/media.html#media-types all Suitable
I have two media queries in my css (not counting the print one) :
I have a string that looks like this, IT, MEDIA, ADVERTISING I am then
I've been adding some new css to an existing project (using media=print) in the
I'm trying to write a drop-in replacement for System.Media.SoundPlayer using the waveOut... API. This
I have a C# app, and I'm looking at using the Windows Media Player
Can't seem to get this div to move to the left. Using wordpress. I
I'm trying to use CSS ( under @media print ) and JavaScript to print

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.