Jump to content

Print CSS - IE - Displays correctly but prints incorrectly.


roopurt18

Recommended Posts

I'm using PHP and MySQL dynamically build pages of purchase orders.  Each page contains a footer of two signature fields which must display at the bottom of each page.  Each "page" of the PO is a [b]div[/b] with width 7.25in and height 9.25in.  The footer has the following style set in the .css file:
[code]
.PurchaseOrder .POFooter{
width: 7.25in;
position: absolute;
left: center;
}
[/code]

In addition, each footer is contained in a [b]div[/b] with the following:
[code]
  <div class="POFooter" style="top: {FOOTER_TOP}in;">
[/code]
where [B]{FOOTER_TOP}[/B] is replaced by:
[code]
<?php
      $footer_top = ($page - 1) * 9.25 + 9;
      if($sig){ // If a signature jpeg exists
        $footer_top -= .5;
      }
      $page = str_replace('{FOOTER_TOP}', $footer_top, $page);
?>
[/code]
Each page of the PO displays correctly in the browser, meaning the footer of every page sits directly on top of the header of the next page.  However, when I print preview in IE (or print) the footer starts climbing higher and higher up each page.
[img]http://www.ibswebview.com/test/po_imgs/footer_climb.JPG[/img]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.