[BNM] Firefox print problem

matt stone stone.matthew at gmail.com
Tue Nov 4 09:28:15 GMT 2008


2008/11/3 John Thompson <john at journalism.co.uk>:
> Can anyone help me? One of our readers has reported a problem with
> printing pages on our site http://www.journalism.co.uk when using
> Firefox.
>
> The print out truncates.
>
> We've got a print stylesheet and it seems to print OK in other browsers.
>
> This is the page they were trying to print out - http://www.journalism.co.uk/5/articles/532502.php
>  - but the issue probably applies to all pages on our site with long
> articles.
>
> I've Googled around but have been unable to find any coherent
> explanations.

Print problems in firefox are usually caused by floats extending over
a page, in your case you've also got your div#contentnews set to
overflow hidden and i'm wondering if that's causing an problem as
well.

As you've removed your left and right columns in your print
stylesheet, why not remove the width float and overflow on
div#contentnews? Alternatively you could add the following rule in
your print stylesheet.

div#contentnews:after {
 content:".";
  display:block;
  height:0;
  clear:both;
  visibility:hidden;
}

I've found that's a pretty reliable way of fixing float clearing
issues in firefox.

Cheers
Matt


More information about the BNMlist mailing list. Powered by Wessex Networks