SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict
    Join Date
    Aug 2005
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    FF print truncates content

    Hi I wonder if anyone can help I have a really annoying problem with Firefox - it keeps truncating my content in print preview.

    When I resize the font the content doesn't flow onto the next page - it just disappears!

    I have tried overflow, clear, page-break etc with no result, any ideas?

    Steven

  2. #2
    Non-Member bronze trophy
    Join Date
    Nov 2009
    Location
    Keene, NH
    Posts
    3,760
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    On what page? Is it a site specific problem or is it for everything?

    A lot of your re-re fixed width sites have these types of issues -- especially if the re-re who made the page didn't bother putting the MEDIA attribute on their CSS embeds, resulting in their screen layout garbage trying to be sent to the printer.

    In FF you MIGHT be able to get around this by making sure that in file>page setup the "shrink to fit page width" checkbox is enabled... but I wouldn't bank on it given how totally useless FF and IE both are when it comes to actually printing pages or *SHOCK* obeying print stylesheets.

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,864
    Mentioned
    159 Post(s)
    Tagged
    4 Thread(s)
    As Jason said we'd need to see the page concerned to debug further.

    Firefox does have a number of bugs with printing and unless you have simplified the styles sheet and removed floats, widths,heights tables and overflow you are likely to run into bugs.

    Printing is something that browsers don't do well yet.

  4. #4
    Ripe Tomatos silver trophybronze trophy Rayzur's Avatar
    Join Date
    Jun 2007
    Location
    Texas
    Posts
    4,174
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    it keeps truncating my content in print preview.

    When I resize the font the content doesn't flow onto the next page - it just disappears!

    I have tried overflow
    Following up on what Paul said: (about overflow)

    When you only see One Page in FF print preview it is a good indicator that you have overflow:auto/hidden/scroll; on the main wrapping div.

    In your printing styles: remove overflow completely from any main wrapping divs or set it to visible.

    I ran into that bug just a few days ago with one of my own pages. I did have some floats in the header and I was able to print successfully with them since they were at the top of the page.

  5. #5
    Mouse catcher silver trophy
    Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,835
    Mentioned
    113 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Steve100 View Post
    Hi I wonder if anyone can help I have a really annoying problem with Firefox - it keeps truncating my content in print preview.

    When I resize the font the content doesn't flow onto the next page - it just disappears!

    I have tried overflow, clear, page-break etc with no result, any ideas?
    It sounds like the most likely cause is that you're floating your main content block (or possibly some other fancy-schmancy positioning). Floated elements don't continue onto the next page. Simple solution - remove all floats, fancy positioning and widths from the main content blocks in your print stylesheet, and let it flow down the page as nature intended.

  6. #6
    SitePoint Addict
    Join Date
    Aug 2005
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Stevie D View Post
    It sounds like the most likely cause is that you're floating your main content block (or possibly some other fancy-schmancy positioning). Floated elements don't continue onto the next page. Simple solution - remove all floats, fancy positioning and widths from the main content blocks in your print stylesheet, and let it flow down the page as nature intended.

    Hi I have got this css for all parent divs - but it still keeps happening!

    float:none !important;
    overflow:visible !important;

    Is it just a FF bug?

  7. #7
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,864
    Mentioned
    159 Post(s)
    Tagged
    4 Thread(s)
    Have you got a link to the page so that we can check?

    It sounds like it will probably be a bug anyway as there are many where printing is concerned.


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
  •