SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Threaded View

  1. #1
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    USA
    Posts
    1,407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    @media print - prints 3 pages in IE but 1 page in Firefox

    When I print preview from Firefox, it shows it will print one page which is what I want. When print preview using Microsoft IE, it shows the page on one page but says it will print 2 pages, and actually prints three. The last two pages are blank.

    Here's the code snippet in the page:
    HTML Code:
    <link href="style.css" rel="stylesheet" type="text/css" />
    ....
    <div class="class1">
    <div class="class2">enough stuff to fill 3/4 page<div class="class2">
    </ div class="class1">
    Here's the code from the style sheet:
    HTML Code:
    @page { size 8.5in 11in; margin: 2cm }
    @media screen {
    	body {
    		font-family: Verdana, Arial, Helvetica, sans-serif;
    		font-size: 10px;
    	}
    }
    @media print {
    	body {
    		font-family: Verdana, Arial, Helvetica, sans-serif;
    		font-size: 8px;
    	}
    	@page { size 8.5in 11in; margin: 2cm }
    }
    Any ideas how to force IE to print just the one page?
    Last edited by WebDevGuy; Oct 2, 2007 at 13:47.


Bookmarks

Posting Permissions

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