View Full Version : Firefox only prints one page

Jul 8th, 2010, 03:14 AM
Hi Everyone,
I have a very annoying bug with Firefox on a site I'm currently working on. When I go to print a page, it only prints the first page. This only occurs in Firefox, and there is no issue printing out in Safari, Chrome etc.

The site is a Drupal 5 site and you can view the problem page at the following link http://aangel.dyndns.org:8888/portfolio

This page does not use Tables or Frames.

So far I have tried all the fixes I'm aware off in the print.css file....

- Unfloating elements
- Setting overflow to visible for all elements
- All elements positions are relative not absolute
- Body does not have a height:100% property
- The HTML code for the page is valid.
- I have also waved a dead chicken in front of the screen to no avail :P

The print.css file is as follows:

/* underline all links */
a:link, a:visited
text-decoration: underline !important;

/* Don't underline header */
#site-name a:link,
#site-name a:visited
text-decoration: none !important;

/* CSS2 selector to add visible href after links
#content a:link:after,
#content a:visited:after
content: " (" attr(href) ") ";
font-size: 0.8em;
font-weight: normal;

/* Un-float the content */
float: none;
width: 100%;
margin: 0 !important;
padding: 0 !important;

/* Turn off any background colors or images */
#page, #page-inner,
#main, #main-inner,
#content, #content-inner
color: #000;
background-color: transparent !important;
background-image: none !important;
overflow: visible !important;

/* Hide sidebars and nav elements */
#skip-to-nav, #navbar, #sidebar-left, #sidebar-right, #footer,
.breadcrumb, div.tabs, .links, .taxonomy,
.book-navigation, .forum-topic-navigation, .pager, .feed-icons
visibility: hidden;
display: none;

/* Corrections so that firefox prints correctly */
/* Changed overflow's to 'visible' */
.section-leadership .view-content-leadership
overflow: visible;
height: 1%;
.section-news .view-content-portfolio
overflow: visible;
height: 1%;
overflow: visible; /* May need to be removed if using a dynamic drop-down menu */

.front .panel-flexible .panel-row-2 .panel-col-1 ul li img
float:none !important;

.front .panel-flexible .panel-row-2 .panel-col-2 img
float:none !important;

I'm running MAC OS X 10.6.4 and Firefox 3.6.6

I am at something of a loss, any help you could give would be appreciated.

Major Payne
Jul 8th, 2010, 08:23 AM
Strange. Get 8 CSS errors (http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri=http%3A%2F%2Faangel.dyndns.org%3A8888%2Fportfolio) for that page. HTML did pass.

Going to File>Print Preview Firefox shows me 4 pages. Didn't try to print them.

Jul 8th, 2010, 05:24 PM
Hi Major Payne,
Thanks kindly for the reply. I only get 4 CSS errors when validating this, and looking at them, none appear to be related to the printing error. They look like an attempt at setting a CSS3 property...text shadow. (I've come to the site to do some bug fixes, and it has been developed previously by someone else)

If you try to print the pages (or just print to PDF) it does just print one page under Firefox 3.6.6. I had fixed the error in a previous version, 3.6.3, but following an upgrade to the latest version it went back to printing just one page.

If you do manage to get more than one page out, I suspect your using an older version of Firefox.

Any further pointers you could give would be greatly appreciated.

Thanks very much

Major Payne
Jul 9th, 2010, 03:06 PM
Does Print Preview in Firefox 3.6.6 show only one or four pages?

I am using an older version (3.0.19) as the later versions seem to be giving lots of people problems. I refuse to install latest versions when all my add-ons get disabled because they are no longer compatible.

You may have hit on the problem about the browser being the problem. I do not have printer set up as I am moving soon. The file is saved as an .xps file, but haven't gotten a M$ Viewer for that format to see if I have all your pages.

Jul 9th, 2010, 03:53 PM
Thanks again for your reply Major Payne.
When I print preview in Firefox 3.6.6 it gives me just one page.
As mentioned in an earlier post, I did fix it for versions of Firefox up until 3.6.3, as soon as I upgraded though the problem rematerialised.

It's possible I have hit upon an error in the browser that just isn't going to be resolved by editing the print CSS files, which which case it's going to be a huge pain for a lot of people - it has been going on since 2001/2002 I believe - I would have thought mozilla would have solved this problem by now.

Major Payne
Jul 9th, 2010, 07:21 PM
Maybe see "Does not print multiple pages" at Problems printing web pages (http://kb.mozillazine.org/Problems_printing_web_pages). This seem relevant:

Bug 192129 – Only one (1) page in print preview (https://bugzilla.mozilla.org/show_bug.cgi?id=192129)

I believe it is a browser bug that has come back to haunt you. As long as FF only shows 1 page in Print View, that is the only page that gets printed. My FF shows 4-pages, so it seems they had the bug fixed at one time. :P